Skip to content

Commit

Permalink
fix golangci-lint issues
Browse files Browse the repository at this point in the history
  • Loading branch information
y0sher committed Oct 22, 2024
1 parent b584888 commit ce72415
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions cli/cmd/wallet/cmd/account/handler/handler_create.go
Original file line number Diff line number Diff line change
Expand Up @@ -276,13 +276,13 @@ func ValidateHighestValues(accountFlagValues CreateAccountFlagValues) error {
privateKeysCount := len(accountFlagValues.privateKeys)

if len(accountFlagValues.highestSources) != privateKeysCount {
return errors.Errorf("highest sources " + errorExplain)
return errors.Errorf("highest sources: %v", errorExplain)
}
if len(accountFlagValues.highestTargets) != privateKeysCount {
return errors.Errorf("highest targets " + errorExplain)
return errors.Errorf("highest targets: %v", errorExplain)
}
if len(accountFlagValues.highestProposals) != privateKeysCount {
return errors.Errorf("highest proposals " + errorExplain)
return errors.Errorf("highest proposals: %v", errorExplain)
}
} else if accountFlagValues.accumulate {
if len(accountFlagValues.highestSources) != (accountFlagValues.index + 1) {
Expand Down

0 comments on commit ce72415

Please sign in to comment.