mirror of
https://github.com/jimeh/build-emacs-for-macos.git
synced 2026-02-19 13:06:38 +00:00
chore(ci/deps): upgrade CI dependencies and fix linting issues (#136)
This commit is contained in:
@@ -65,10 +65,7 @@ func (s *OSInfo) distinctVersion(version string) string {
|
||||
return parts[0]
|
||||
}
|
||||
|
||||
max := len(parts)
|
||||
if max > 2 {
|
||||
max = 2
|
||||
}
|
||||
end := min(len(parts), 2)
|
||||
|
||||
return strings.Join(parts[0:max], ".")
|
||||
return strings.Join(parts[0:end], ".")
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user