Skip to content
This repository has been archived by the owner on Jun 9, 2022. It is now read-only.

Commit

Permalink
fix check error and rethink init process
Browse files Browse the repository at this point in the history
  • Loading branch information
martinnirtl committed Feb 8, 2020
1 parent 7dc25fa commit 01cb8fc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions internal/commands/root.go
Original file line number Diff line number Diff line change
Expand Up @@ -77,8 +77,8 @@ func initConfig() {

viper.AddConfigPath(dockmaConfig)

// FIXME check error and rethink init process
viper.ReadInConfig()
// NOTE read errors get ignored and execution is mainly prevented by rootPreRunHook func
_ = viper.ReadInConfig()
}

func rootPreRunHook(cmd *cobra.Command, args []string) {
Expand Down

0 comments on commit 01cb8fc

Please sign in to comment.