diff --git a/src/Loader.jl b/src/Loader.jl index c0f4c2db2..d0390b783 100644 --- a/src/Loader.jl +++ b/src/Loader.jl @@ -91,12 +91,11 @@ Loads .env file if present """ function load_dotenv() if isfile(Genie.config.env_file) - @static if VersionNumber(Genie.Util.package_version(DotEnv)) >= v"1.0" - DotEnv.load!(Genie.config.env_file; override = true) - else - DotEnv.config(; path = Genie.config.env_file, override = true) - end - DotEnv.load!(Genie.config.env_file; override = true) + @static if VersionNumber(Genie.Util.package_version(DotEnv)) >= v"1.0" + DotEnv.load!(Genie.config.env_file; override = true) + else + DotEnv.config(; path = Genie.config.env_file, override = true) + end end nothing