Skip to content

Commit 071c7f1

Browse files
committed
Remove redundant null-coalescing assignment
1 parent 0db071c commit 071c7f1

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

dev-proxy-abstractions/ProxyUtils.cs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -320,7 +320,6 @@ public static string ProductVersion
320320
}
321321
}
322322

323-
324323
return _productVersion;
325324
}
326325
}
@@ -638,7 +637,6 @@ public static int CompareSemVer(string? a, string? b)
638637
/// <param name="version">A version looks like "0.28.1", "0.28.1-alpha", "0.28.10-beta.1", "0.28.10-rc.1", or "0.28.0-preview-1", etc.</param>
639638
public static string NormalizeVersion(string version)
640639
{
641-
version ??= string.Empty;
642640
return version.Split('-', StringSplitOptions.None)[0];
643641
}
644642
}

0 commit comments

Comments
 (0)