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