Skip to content

Commit

Permalink
#153: Do not display a warning when the .env file does not exist
Browse files Browse the repository at this point in the history
  • Loading branch information
sgerbino committed Nov 18, 2022
1 parent eae28dd commit e4e5b2f
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions cmd/cli/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -37,11 +37,8 @@ const (
)

func main() {
// Load .env file
err := godotenv.Load()
if err != nil {
fmt.Println(err)
}
// Optionally load .env file
godotenv.Load()

// Setup command line options
rpcAddress := flag.StringP(rpcOption, "r", rpcDefault, "RPC server URL")
Expand Down

0 comments on commit e4e5b2f

Please sign in to comment.