chore: fix all lint issue since golangci-lint bump (#21326)

This commit is contained in:
Julien Robert
2024-08-16 13:03:24 +00:00
committed by GitHub
parent 825e81b688
commit 6276b015bb
20 changed files with 37 additions and 28 deletions
+1 -1
View File
@@ -498,7 +498,7 @@ metadata example:
// Since the --from flag is not required on this CLI command, we
// ignore it, and just use the 1st proposer in the JSON file.
if prop.Proposers == nil || len(prop.Proposers) == 0 {
if len(prop.Proposers) == 0 {
return errors.New("no proposers specified in proposal")
}
err = cmd.Flags().Set(flags.FlagFrom, prop.Proposers[0])