Skip to content

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
  • Loading branch information
renaynay committed Feb 19, 2025
1 parent 8584152 commit 661e7ab
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions cmd/util.go
Original file line number Diff line number Diff line change
Expand Up @@ -76,15 +76,18 @@ func DecodeToBytes(param string) ([]byte, error) {
}

func ParseMinimumFlags(cmd *cobra.Command) error {
ctx := cmd.Context()
var (
ctx = cmd.Context()
err error
)

net, err := p2p.ParseNetwork(cmd)
if err != nil {
return err
}
ctx = WithNetwork(cmd.Context(), net)
ctx = WithNetwork(ctx, net)

ctx, err = ParseNodeStore(cmd.Context(), cmd, net)
ctx, err = ParseNodeStore(ctx, cmd, net)
if err != nil {
return err
}
Expand Down

0 comments on commit 661e7ab

Please sign in to comment.