mirror of
https://github.com/ICDSystems/ICD.Common.Utils.git
synced 2026-04-12 12:07:05 +00:00
fix: Fixing trailing whitespace in windows model name
This commit is contained in:
parent
43fd348fae
commit
5083f3d7ab
1 changed files with 5 additions and 3 deletions
|
|
@ -29,9 +29,11 @@ namespace ICD.Common.Utils
|
|||
|
||||
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 +
|
||||
(csdVersion == string.Empty ? string.Empty : " " + csdVersion);
|
||||
|
||||
return output.Trim();
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue