Skip to content

Commit 50b19bc

Browse files
committed
Revert "Handle null osVersionFromKernel"
This reverts commit 84ab8cd.
1 parent e0744e2 commit 50b19bc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

runtime/runtime-core/mingw/src/aws/smithy/kotlin/runtime/util/SystemDefaultProviderMingw.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ public actual object SystemDefaultProvider : SystemDefaultProviderBase() {
1414
actual override val filePathSeparator: String = "\\"
1515

1616
// FIXME We currently get the OS info by parsing from Kernel32.dll. Is there a less hacky way we can do this?
17-
actual override fun osInfo(): OperatingSystem = osVersionFromKernel()?.let { OperatingSystem(OsFamily.Windows, it) } ?: throw RuntimeException("Failed to introspect OS version")
17+
actual override fun osInfo(): OperatingSystem = OperatingSystem(OsFamily.Windows, osVersionFromKernel())
1818

1919
actual override fun getAllEnvVars(): Map<String, String> = memScoped {
2020
generateSequence(0) { it + 1 }

0 commit comments

Comments
 (0)