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

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