From e4e5b2fdd171f9b50e88964adec2c404e1e1d461 Mon Sep 17 00:00:00 2001 From: Steve Gerbino Date: Fri, 18 Nov 2022 15:45:08 -0500 Subject: [PATCH] #153: Do not display a warning when the .env file does not exist --- cmd/cli/main.go | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/cmd/cli/main.go b/cmd/cli/main.go index 6e4c855..f5599a6 100644 --- a/cmd/cli/main.go +++ b/cmd/cli/main.go @@ -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")