Skip to content

Commit

Permalink
Change call to IsNullOrWhiteSpace (#4322)
Browse files Browse the repository at this point in the history
  • Loading branch information
JimSuplizio authored Oct 6, 2022
1 parent 9b4e179 commit e849662
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -560,7 +560,7 @@ public async Task UpdateAssetsJson(string newSha, GitAssetsConfiguration config)

var currentSHA = (await ParseConfigurationFile(config.AssetsJsonLocation)).Tag;
var content = await File.ReadAllTextAsync(config.AssetsJsonLocation);
if (String.IsNullOrEmpty(currentSHA))
if (String.IsNullOrWhiteSpace(currentSHA))
{
string pattern = @"""Tag"":\s*""\s*""";
content = Regex.Replace(content, pattern, $"\"Tag\": \"{newSha}\"", RegexOptions.IgnoreCase);
Expand Down

0 comments on commit e849662

Please sign in to comment.