Skip to content

Commit 51ef4f2

Browse files
JusterZhuCopilot
andauthored
Update src/c#/GeneralUpdate.Core/GeneralUpdateBootstrap.cs
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
1 parent 5f0d8ad commit 51ef4f2

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/c#/GeneralUpdate.Core/GeneralUpdateBootstrap.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -260,7 +260,7 @@ private static int GetPlatform()
260260
{
261261
if (RuntimeInformation.IsOSPlatform(OSPlatform.Windows)) return PlatformType.Windows;
262262
if (RuntimeInformation.IsOSPlatform(OSPlatform.Linux)) return PlatformType.Linux;
263-
return -1;
263+
throw new PlatformNotSupportedException("The current operating system is not supported!");
264264
}
265265

266266
#endregion

0 commit comments

Comments
 (0)