Inline if block

Signed-off-by: Émile Ré <emile@getprobo.com>
This commit is contained in:
Émile Ré
2026-02-19 12:08:49 +04:00
parent 2793c18587
commit c74e7e23f6

View File

@@ -165,8 +165,7 @@ func (s *Service) CreateUser(
UpdatedAt: now,
}
err = identity.Insert(ctx, tx)
if err != nil {
if err := identity.Insert(ctx, tx); err != nil {
return fmt.Errorf("cannot insert identity: %w", err)
}
} else {