mirror of
https://github.com/EnumeratedDev/stormfetch.git
synced 2026-09-16 07:56:12 +00:00
Remove duplicate whitespaces in motherboard names
This commit is contained in:
+5
-1
@@ -124,7 +124,11 @@ func GetMotherboardModel() string {
|
||||
if err != nil {
|
||||
return ""
|
||||
}
|
||||
return strings.TrimSpace(string(bytes))
|
||||
|
||||
// Remove duplicate whitespaces
|
||||
ret := strings.Join(strings.Fields(string(bytes)), " ")
|
||||
|
||||
return ret
|
||||
}
|
||||
|
||||
func GetMonitors() []Monitor {
|
||||
|
||||
Reference in New Issue
Block a user