Skip to content

Commit

Permalink
rev err
Browse files Browse the repository at this point in the history
  • Loading branch information
Lazar955 committed Nov 13, 2024
1 parent d36a49c commit df2120c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion finality-provider/cmd/cmd.go
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ func PersistClientCtx(ctx client.Context) func(cmd *cobra.Command, _ []string) e
cfg, err := fpcfg.LoadConfig(ctx.HomeDir)
if err != nil {
//nolint:nilerr
return err // if no conifg is found just stop.
return nil // if no conifg is found just stop.
}

// config was found, load the defaults if not set by flag
Expand Down
2 changes: 1 addition & 1 deletion finality-provider/cmd/fpd/daemon/keys.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ func CommandKeys() *cobra.Command {
cfg, err := fpcfg.LoadConfig(ctx.HomeDir)
if err != nil {
//nolint:nilerr
return err // config does not exist, so does not update it
return nil // config does not exist, so does not update it
}

keyringBackend, err := cmd.Flags().GetString(sdkflags.FlagKeyringBackend)
Expand Down

0 comments on commit df2120c

Please sign in to comment.