Address feedback
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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"),
|
||||
|
||||
Reference in New Issue
Block a user