Skip to content

Commit

Permalink
simplify cast
Browse files Browse the repository at this point in the history
  • Loading branch information
majewsky committed Oct 18, 2024
1 parent 394b8c8 commit 883e8c3
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(rerr).WithStatus(http.StatusBadRequest)
return models.Account{}, rerr.WithStatus(http.StatusBadRequest)
}
}

Expand Down

0 comments on commit 883e8c3

Please sign in to comment.