Add and fix ifshort
This commit is contained in:
parent
9390348a65
commit
796072a5a4
6 changed files with 5 additions and 11 deletions
|
@ -52,8 +52,7 @@ func LoadConfig(path string) error {
|
|||
viper.SetDefault("cli.insecure", false)
|
||||
viper.SetDefault("cli.timeout", "5s")
|
||||
|
||||
err := viper.ReadInConfig()
|
||||
if err != nil {
|
||||
if err := viper.ReadInConfig(); err != nil {
|
||||
return fmt.Errorf("Fatal error reading config file: %s \n", err)
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue