Skip to content

Commit

Permalink
Corrected usage of null.
Browse files Browse the repository at this point in the history
  • Loading branch information
cdmdotnet committed Dec 15, 2023
1 parent d4f52f6 commit 9545e24
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ protected static void PrepareConfigurationManager()
string localRoot = Environment.GetEnvironmentVariable("AzureWebJobsScriptRoot");
string azureRoot = Environment.GetEnvironmentVariable("HOME");
azureRoot = string.IsNullOrWhiteSpace(azureRoot)
? string.Empty
? null
: $"{azureRoot}/site/wwwroot";

string actualRoot = localRoot ?? azureRoot ?? Environment.CurrentDirectory;
Expand Down Expand Up @@ -149,7 +149,7 @@ protected virtual void PrepareHost()
string localRoot = Environment.GetEnvironmentVariable("AzureWebJobsScriptRoot");
string azureRoot = Environment.GetEnvironmentVariable("HOME");
azureRoot = string.IsNullOrWhiteSpace(azureRoot)
? string.Empty
? null
: $"{azureRoot}/site/wwwroot";
string actualRoot = localRoot ?? azureRoot ?? Environment.CurrentDirectory;
Expand Down Expand Up @@ -225,7 +225,7 @@ Microsoft.Extensions.Configuration.IConfigurationRoot config
string localRoot = Environment.GetEnvironmentVariable("AzureWebJobsScriptRoot");
string azureRoot = Environment.GetEnvironmentVariable("HOME");
azureRoot = string.IsNullOrWhiteSpace(azureRoot)
? string.Empty
? null
: $"{azureRoot}/site/wwwroot";

string actualRoot = localRoot ?? azureRoot ?? Environment.CurrentDirectory;
Expand Down

0 comments on commit 9545e24

Please sign in to comment.