Small gofmt fixes

pull/6/head
Lukas Lueg 11 years ago
parent 0d21129dc7
commit 26941df392

@ -151,10 +151,7 @@ func getLSB() (*LSB, error) {
return ret, nil return ret, nil
} }
func GetPlatformInformation() (string, string, string, error) { func GetPlatformInformation() (platform string, family string, version string, err error) {
platform := ""
family := ""
version := ""
lsb, err := getLSB() lsb, err := getLSB()
if err != nil { if err != nil {
@ -262,9 +259,8 @@ func getRedhatishVersion(contents []string) string {
} }
if matches := regexp.MustCompile(`release (\d[\d.]*)`).FindStringSubmatch(c); matches != nil { if matches := regexp.MustCompile(`release (\d[\d.]*)`).FindStringSubmatch(c); matches != nil {
return matches[1] return matches[1]
} else {
return ""
} }
return ""
} }
func getRedhatishPlatform(contents []string) string { func getRedhatishPlatform(contents []string) string {

Loading…
Cancel
Save