Add wsl linter and fix

Signed-off-by: Émile Ré <emile@probo.com>
This commit is contained in:
Émile Ré
2026-05-19 14:51:08 +04:00
parent eedfdcecc8
commit 9156d6a16a
882 changed files with 6068 additions and 574 deletions

View File

@@ -71,6 +71,7 @@ func (s *SAMLConfiguration) AuthorizationAttributes(ctx context.Context, conn pg
if errors.Is(err, pgx.ErrNoRows) {
return nil, ErrResourceNotFound
}
return nil, fmt.Errorf("cannot query saml configuration authorization attributes: %w", err)
}
@@ -505,6 +506,7 @@ WHERE
}
var count int
err = rows.Scan(&count)
if err != nil {
return 0, fmt.Errorf("cannot collect count: %w", err)
@@ -572,6 +574,7 @@ WHERE
`
row := conn.QueryRow(ctx, q, pgx.StrictNamedArgs{"email_domain": emailDomain})
var count int
if err := row.Scan(&count); err != nil {
return 0, fmt.Errorf("cannot count SAML configurations: %w", err)