Skip to content

Commit

Permalink
Drop the line that caused nil dereference
Browse files Browse the repository at this point in the history
  • Loading branch information
violog committed May 9, 2024
1 parent 5338a41 commit 9365983
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion internal/service/api/handlers/create_identity.go
Original file line number Diff line number Diff line change
Expand Up @@ -235,7 +235,6 @@ func CreateIdentity(w http.ResponseWriter, r *http.Request) {
if count > 0 {
allowed := rand.Intn(cfg.MultiAccMaxLimit-cfg.MultiAccMinLimit+1) + cfg.MultiAccMinLimit
if count >= allowed {
claim.IsBanned = true
err = masterQ.Claim().FilterBy("document_hash", documentHash.String()).Update(map[string]any{
"is_banned": true,
})
Expand Down

0 comments on commit 9365983

Please sign in to comment.