Skip to content

Commit

Permalink
Fix nil pointer dereference
Browse files Browse the repository at this point in the history
  • Loading branch information
SuperSandro2000 committed Oct 14, 2024
1 parent 4a75216 commit 4b44c78
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/processor/accounts.go
Original file line number Diff line number Diff line change
Expand Up @@ -242,7 +242,7 @@ func (p *Processor) CreateOrUpdateAccount(ctx context.Context, account keppel.Ac
var rerr *keppel.RegistryV2Error
subleaseTokenSecret, rerr = getSubleaseToken(peer)
if rerr != nil {
return models.Account{}, keppel.AsRegistryV2Error(err).WithStatus(http.StatusBadRequest)
return models.Account{}, keppel.AsRegistryV2Error(rerr).WithStatus(http.StatusBadRequest)
}
}

Expand Down

0 comments on commit 4b44c78

Please sign in to comment.