Skip to content

Commit 551f63b

Browse files
author
Sergey Tregub
committed
Remove redundant check
1 parent e0908e7 commit 551f63b

1 file changed

Lines changed: 1 addition & 4 deletions

File tree

ProjectTemplates/ReferenceProject/Startup.cs

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -37,10 +37,7 @@ public Startup(IConfiguration configuration, IHostEnvironment env)
3737

3838
// https://github.com/drwatson1/AspNet-Core-REST-Service/wiki#using-environment-variables-in-configuration-options
3939
var envPath = Path.Combine(env.ContentRootPath, ".env");
40-
if (File.Exists(envPath))
41-
{
42-
DotNetEnv.Env.Load(envPath);
43-
}
40+
DotNetEnv.Env.Load(envPath);
4441

4542
// See: https://github.com/drwatson1/AspNet-Core-REST-Service/wiki#content-formatting
4643
JsonConvert.DefaultSettings = () =>

0 commit comments

Comments
 (0)