Skip to content

Commit

Permalink
No need to map nil to an empty array when there's no count query.
Browse files Browse the repository at this point in the history
  • Loading branch information
ericpromislow committed Dec 3, 2024
1 parent 7d2e6e4 commit b032b9d
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions pkg/cache/sql/informer/listoption_indexer_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -790,9 +790,6 @@ func TestListByOptions(t *testing.T) {
}
assert.Equal(t, test.expectedStmtArgs, queryInfo.params)
assert.Equal(t, test.expectedCountStmt, queryInfo.countQuery)
if test.expectedCountStmtArgs == nil {
test.expectedCountStmtArgs = []any{}
}
assert.Equal(t, test.expectedCountStmtArgs, queryInfo.countParams)

stmt := &sql.Stmt{}
Expand Down

0 comments on commit b032b9d

Please sign in to comment.