Skip to content

Commit

Permalink
Remove tautological condition check
Browse files Browse the repository at this point in the history
Error is always non nil when this branch is reached.
  • Loading branch information
rkuska authored and junkert committed Jun 3, 2020
1 parent 22a800e commit c08393d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,7 @@ func initConfig() {

if err := viper.ReadInConfig(); err == nil {
fmt.Println("Using config file:", viper.ConfigFileUsed())
} else if err != nil && viper.ConfigFileUsed() != "" {
} else if viper.ConfigFileUsed() != "" {
fmt.Println("Failed to open config file:", err.Error())
os.Exit(1)
}
Expand Down

0 comments on commit c08393d

Please sign in to comment.