Remove useless error checks

Signed-off-by: Émile Ré <emile@probo.com>
This commit is contained in:
Émile Ré
2026-05-20 09:53:09 +04:00
parent 46c6068559
commit f3cc159f1f
2 changed files with 1 additions and 13 deletions

View File

@@ -1624,7 +1624,7 @@ func (s OrganizationService) DeleteSCIMConfiguration(
connector := &coredata.Connector{ID: *bridge.ConnectorID}
err = connector.Delete(ctx, tx, scope)
if err != nil && err != coredata.ErrResourceNotFound {
if err != nil {
return fmt.Errorf("cannot delete connector: %w", err)
}
}