mirror of
https://github.com/jimeh/build-emacs-for-macos.git
synced 2026-02-19 04:56:39 +00:00
chore(ci/deps): upgrade CI dependencies and fix linting issues (#136)
This commit is contained in:
@@ -287,7 +287,7 @@ func (s *Updater) createRepoFile(
|
||||
s.logger.Info(
|
||||
"new commit created",
|
||||
"commit", contResp.GetSHA(), "message", contResp.GetMessage(),
|
||||
"url", contResp.Commit.GetHTMLURL(),
|
||||
"url", contResp.GetHTMLURL(),
|
||||
)
|
||||
|
||||
return nil
|
||||
@@ -354,7 +354,7 @@ func (s *Updater) updateRepoFile(
|
||||
s.logger.Info(
|
||||
"new commit created",
|
||||
"commit", contResp.GetSHA(), "message", contResp.GetMessage(),
|
||||
"url", contResp.Commit.GetHTMLURL(),
|
||||
"url", contResp.GetHTMLURL(),
|
||||
)
|
||||
|
||||
return true, nil
|
||||
|
||||
@@ -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