Skip to content

Commit

Permalink
Ignore lint for pulled out SDK func errcheck
Browse files Browse the repository at this point in the history
  • Loading branch information
Reecepbcups committed Apr 8, 2023
1 parent a0c6584 commit 44f889d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions cmd/junod/cmd/server_configs.go
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,8 @@ func InterceptConfigsPreRunHandler(cmd *cobra.Command, customAppConfigTemplate s
basename := path.Base(executableName)

// Configure the viper instance
serverCtx.Viper.BindPFlags(cmd.Flags())
serverCtx.Viper.BindPFlags(cmd.PersistentFlags())
serverCtx.Viper.BindPFlags(cmd.Flags()) // nolint: errcheck
serverCtx.Viper.BindPFlags(cmd.PersistentFlags()) // nolint: errcheck
serverCtx.Viper.SetEnvPrefix(basename)
serverCtx.Viper.SetEnvKeyReplacer(strings.NewReplacer(".", "_", "-", "_"))
serverCtx.Viper.AutomaticEnv()
Expand Down Expand Up @@ -165,7 +165,7 @@ func interceptConfigs(rootViper *viper.Viper, customAppTemplate string, customCo

func bindFlags(basename string, cmd *cobra.Command, v *viper.Viper) (err error) {
defer func() {
recover()
recover() // nolint: errcheck
}()

cmd.Flags().VisitAll(func(f *pflag.Flag) {
Expand Down
4 changes: 2 additions & 2 deletions go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -129,11 +129,11 @@ require (
github.com/regen-network/cosmos-proto v0.3.1 // indirect
github.com/rogpeppe/go-internal v1.9.0 // indirect
github.com/rs/cors v1.8.2 // indirect
github.com/rs/zerolog v1.27.0 // indirect
github.com/rs/zerolog v1.27.0
github.com/sasha-s/go-deadlock v0.3.1 // indirect
github.com/spf13/afero v1.9.3 // indirect
github.com/spf13/jwalterweatherman v1.1.0 // indirect
github.com/spf13/pflag v1.0.5 // indirect
github.com/spf13/pflag v1.0.5
github.com/spf13/viper v1.15.0
github.com/subosito/gotenv v1.4.2 // indirect
github.com/syndtr/goleveldb v1.0.1-0.20210819022825-2ae1ddf74ef7
Expand Down

0 comments on commit 44f889d

Please sign in to comment.