Skip to content

Free, open-source Windows optimization tool for performance, privacy, and simplicity.

fix(systeminfohelper): apply some suggestion

itsfatduck47bc6d881152
diff --git a/optimizerDuck/src/Core/Services/SystemInfoService.cs b/optimizerDuck/src/Core/Services/SystemInfoService.cs
index 3a5c441..d46ef78 100644
--- a/optimizerDuck/src/Core/Services/SystemInfoService.cs
+++ b/optimizerDuck/src/Core/Services/SystemInfoService.cs
@@ -331,7 +331,7 @@ internal static class RamProvider
}
}
-public static partial class DiskHelper
+public static class DiskHelper
{
[DllImport("kernel32.dll", SetLastError = true, CharSet = CharSet.Unicode)]
static extern SafeFileHandle CreateFile(
@@ -537,7 +537,7 @@ internal static class GpuProvider
public static GpuInfo? GetPrimary(IReadOnlyList<GpuInfo> gpus)
{
- if (gpus == null || gpus.Count == 0) return null;
+ if (gpus.Count == 0) return null;
return gpus
.OrderByDescending(CalculateGpuScore)