Skip to content

Commit

Permalink
lint.
Browse files Browse the repository at this point in the history
  • Loading branch information
jonhadfield committed Jul 7, 2024
1 parent 1257965 commit 425b621
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
4 changes: 1 addition & 3 deletions cmd/cache.go
Original file line number Diff line number Diff line change
Expand Up @@ -75,9 +75,7 @@ func newCacheInitialiseCommand() *cobra.Command {

processor.Session.Config.Global.InitialiseCacheOnly = true

processor.Run()

return nil
return processor.Run()
},
}
}
Expand Down
4 changes: 2 additions & 2 deletions cmd/root.go
Original file line number Diff line number Diff line change
Expand Up @@ -585,7 +585,7 @@ func initHomeDirConfig(sess *session.Session, v *viper.Viper) error {
return nil
}

func initSessionConfig(sess *session.Session, v *viper.Viper, configRoot string) error {
func initSessionConfig(sess *session.Session, v *viper.Viper) error {
initProviderConfig(sess, v)

sess.Config.Global.Ports = v.GetStringSlice("global.ports")
Expand Down Expand Up @@ -646,7 +646,7 @@ func initConfig(cmd *cobra.Command) error {

sess.Target = os.Stderr

if err := initSessionConfig(sess, v, configRoot); err != nil {
if err := initSessionConfig(sess, v); err != nil {
return err
}

Expand Down

0 comments on commit 425b621

Please sign in to comment.