Skip to content

Commit 376e9d1

Browse files
authored
Fix null ref type warning in Nuke (#7382)
## Summary of changes Fix a warning when running Nuke ## Reason for change I introduced a null reference type. And the compiler is upset about it. ## Implementation details Remove the offending `?` ## Test coverage Tested it locally
1 parent fd93d9e commit 376e9d1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tracer/build/_build/MetricHelper.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ private static string SanitizeTagValue(string tag)
9191
static bool TryNormalizeTagName(
9292
string value,
9393
bool normalizeSpaces,
94-
[NotNullWhen(returnValue: true)] out string? normalizedTagName)
94+
[NotNullWhen(returnValue: true)] out string normalizedTagName)
9595
{
9696
normalizedTagName = null;
9797

@@ -123,7 +123,7 @@ static bool TryNormalizeTagName(
123123

124124
static bool IsValidTagName(
125125
string value,
126-
[NotNullWhen(returnValue: true)] out string? trimmedValue)
126+
[NotNullWhen(returnValue: true)] out string trimmedValue)
127127
{
128128
trimmedValue = null;
129129

0 commit comments

Comments
 (0)