Drop empty-input guards from batch loaders

ANY(@ids) with an empty array is valid in Postgres and
CollectRows already yields an empty slice; the early nil
assignments added noise without changing callers.

Signed-off-by: Cursor Agent <cursoragent@cursor.com>

Co-authored-by: Bryan FRIMIN <bryan@frimin.fr>
This commit is contained in:
Cursor Agent
2026-07-29 21:09:16 +00:00
parent 0e05fca7fc
commit b715107e6c
3 changed files with 0 additions and 18 deletions

View File

@@ -307,12 +307,6 @@ func (a *PersonalAPIKeys) LoadByIDs(
conn pg.Querier,
apiKeyIDs []gid.GID,
) error {
if len(apiKeyIDs) == 0 {
*a = nil
return nil
}
q := `
SELECT
id,