Skip to content

Commit

Permalink
chore: improve code
Browse files Browse the repository at this point in the history
  • Loading branch information
martinsaporiti committed Apr 11, 2024
1 parent 0bb364a commit a65ef21
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions internal/core/services/identity.go
Original file line number Diff line number Diff line change
Expand Up @@ -408,15 +408,15 @@ func (i *identity) processClaims(ctx context.Context, tx pgx.Tx, did w3c.DID, iT
claimsAddedToTree = true
}

if claimsAddedToTree {
for i := range lc {
err = iTrees.AddClaim(ctx, &lc[i])
if err != nil {
log.Error(ctx, "adding claim to tree", "err", err)
return false, err
}
for i := range lc {
err = iTrees.AddClaim(ctx, &lc[i])
if err != nil {
log.Error(ctx, "adding claim to tree", "err", err)
return false, err
}

}

return claimsAddedToTree, nil
}

Expand Down

0 comments on commit a65ef21

Please sign in to comment.