Address feedback

This commit is contained in:
Mihaly Gyongyosi
2025-09-16 09:07:39 +02:00
parent 97df1e44bf
commit 8ab9559076
2 changed files with 0 additions and 10 deletions
@@ -445,11 +445,6 @@ func (s *legacySQLStore) DeleteServiceAccount(ctx context.Context, ns claims.Nam
return fmt.Errorf("failed to scan user ID: %w", err)
}
// Close rows to avoid the bad connection error
if rows != nil {
_ = rows.Close()
}
orgUserReq := newDeleteOrgUser(sql, userID)
if err := orgUserReq.Validate(); err != nil {
return err
-5
View File
@@ -546,11 +546,6 @@ func (s *legacySQLStore) DeleteUser(ctx context.Context, ns claims.NamespaceInfo
return fmt.Errorf("failed to scan user ID: %w", err)
}
// Close rows to avoid the bad connection error
if rows != nil {
_ = rows.Close()
}
orgUserReq := deleteOrgUserQuery{
SQLTemplate: sqltemplate.New(sql.DialectForDriver()),
OrgUserTable: sql.Table("org_user"),