Skip to content

Commit

Permalink
Fix update-deps for null version source name (dotnet#3780)
Browse files Browse the repository at this point in the history
(cherry picked from commit 7d4e6e2)
  • Loading branch information
mthalman committed Jun 10, 2022
1 parent 04ed0d8 commit e30eda6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion eng/update-dependencies/ManifestHelper.cs
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ public static string GetBaseUrl(JObject manifestVariables, Options options) =>
/// <param name="branch">Name of the branch.</param>
public static string GetBaseUrlVariableName(string dockerfileVersion, string branch, string versionSourceName)
{
string version = versionSourceName.Contains("dotnet-monitor") ? $"{dockerfileVersion}-monitor" : dockerfileVersion;
string version = versionSourceName?.Contains("dotnet-monitor") == true ? $"{dockerfileVersion}-monitor" : dockerfileVersion;
return $"base-url|{version}|{branch}";
}

Expand Down

0 comments on commit e30eda6

Please sign in to comment.