summaryrefslogtreecommitdiff
path: root/src/System.Private.CoreLib/shared/System/Environment.cs
diff options
context:
space:
mode:
Diffstat (limited to 'src/System.Private.CoreLib/shared/System/Environment.cs')
-rw-r--r--src/System.Private.CoreLib/shared/System/Environment.cs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/System.Private.CoreLib/shared/System/Environment.cs b/src/System.Private.CoreLib/shared/System/Environment.cs
index 319ae9b1c6..d99a5a667a 100644
--- a/src/System.Private.CoreLib/shared/System/Environment.cs
+++ b/src/System.Private.CoreLib/shared/System/Environment.cs
@@ -149,7 +149,7 @@ namespace System
versionSpan = versionSpan.Slice(0, separatorIndex);
// Return zeros rather then failing if the version string fails to parse
- return Version.TryParse(versionSpan, out Version? version) ? version! : new Version(); // TODO-NULLABLE: Remove ! when nullable attributes are respected
+ return Version.TryParse(versionSpan, out Version? version) ? version : new Version();
}
}