Skip to content
This repository was archived by the owner on Jun 25, 2024. It is now read-only.

Commit

Permalink
Merge pull request #16 from KusionStack/fix-lint-issues
Browse files Browse the repository at this point in the history
fix: lint issues
  • Loading branch information
elliotxx authored May 18, 2022
2 parents d023f06 + dbf254f commit 765b008
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkg/sources/github/types.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,9 @@ func getArchiveDownloadURL(ver string) (string, error) {

if urlPattern, ok := archiveDownloadURLMap[getOsArchKey(runtime.GOOS, runtime.GOARCH)]; ok {
return fmt.Sprintf(urlPattern, ver), nil
} else {
return "", ErrUnsupportedOsArch
}

return "", ErrUnsupportedOsArch
}

func getOsArchKey(goos, goarch string) string {
Expand Down

0 comments on commit 765b008

Please sign in to comment.