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

@@ -502,12 +502,6 @@ func (p *MembershipProfiles) LoadByOrganizationIDAndUserNames(
organizationID gid.GID,
userNames []string,
) error {
if len(userNames) == 0 {
*p = nil
return nil
}
q := `
SELECT
p.id,