mirror of
https://github.com/ICDSystems/ICD.Common.Utils.git
synced 2026-02-13 03:35:04 +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");
|
||||
|
||||
return (productName.StartsWith("Microsoft") ? string.Empty : "Microsoft ") +
|
||||
productName +
|
||||
(csdVersion == string.Empty ? string.Empty : " " + csdVersion);
|
||||
string output = (productName.StartsWith("Microsoft") ? string.Empty : "Microsoft ") +
|
||||
productName +
|
||||
(csdVersion == string.Empty ? string.Empty : " " + csdVersion);
|
||||
|
||||
return output.Trim();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user