Skip to content

Commit

Permalink
fix: ignore not found conf
Browse files Browse the repository at this point in the history
  • Loading branch information
gregorgololicic committed Jan 4, 2021
1 parent 81a0970 commit 29245f2
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 3 deletions.
Binary file removed flow
Binary file not shown.
Binary file removed flow-cli
Binary file not shown.
4 changes: 1 addition & 3 deletions util/util.go
Original file line number Diff line number Diff line change
Expand Up @@ -88,9 +88,7 @@ func InitConfig() {

if err := viper.ReadInConfig(); err != nil {
if _, ok := err.(viper.ConfigFileNotFoundError); ok {
fmt.Println("ERROR not found")
} else {
// Config file was found but another error was produced
// if not found ignore it
}
}
}

0 comments on commit 29245f2

Please sign in to comment.