mirror of
https://github.com/ICDSystems/ICD.Common.Utils.git
synced 2026-02-16 13:15:07 +00:00
fix: Fixing trailing whitespace in windows model name
This commit is contained in:
@@ -29,9 +29,11 @@ namespace ICD.Common.Utils
|
|||||||
|
|
||||||
string csdVersion = RegistryLocalMachineGetString(@"SOFTWARE\Microsoft\Windows NT\CurrentVersion", "CSDVersion");
|
string csdVersion = RegistryLocalMachineGetString(@"SOFTWARE\Microsoft\Windows NT\CurrentVersion", "CSDVersion");
|
||||||
|
|
||||||
return (productName.StartsWith("Microsoft") ? string.Empty : "Microsoft ") +
|
string output = (productName.StartsWith("Microsoft") ? string.Empty : "Microsoft ") +
|
||||||
productName +
|
productName +
|
||||||
(csdVersion == string.Empty ? string.Empty : " " + csdVersion);
|
(csdVersion == string.Empty ? string.Empty : " " + csdVersion);
|
||||||
|
|
||||||
|
return output.Trim();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user