Refactoring
This commit is contained in:
+1
-1
@@ -20,7 +20,6 @@ func parseVersion(ver string) (verno VersionNo) {
|
||||
if verno.Major, err = strconv.Atoi(parts[0]); err != nil {
|
||||
return verno
|
||||
}
|
||||
}
|
||||
if len(parts) > 1 {
|
||||
if verno.Minor, err = strconv.Atoi(parts[1]); err != nil {
|
||||
return verno
|
||||
@@ -31,6 +30,7 @@ func parseVersion(ver string) (verno VersionNo) {
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
return verno
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user