mirror of
https://github.com/taigrr/wtf
synced 2025-01-18 04:03:14 -08:00
Clean up a bunch of if statements based on govet results
This commit is contained in:
@@ -52,7 +52,7 @@ func dnsMacOS() []string {
|
||||
|
||||
if len(lines) > 0 {
|
||||
return lines
|
||||
} else {
|
||||
return []string{}
|
||||
}
|
||||
|
||||
return []string{}
|
||||
}
|
||||
|
||||
@@ -83,9 +83,9 @@ func wifiNameMacOS() string {
|
||||
func matchStr(data [][]string) string {
|
||||
if len(data) <= 1 {
|
||||
return ""
|
||||
} else {
|
||||
return data[1][1]
|
||||
}
|
||||
|
||||
return data[1][1]
|
||||
}
|
||||
|
||||
//Windows
|
||||
|
||||
Reference in New Issue
Block a user