Skip to content

Commit

Permalink
Merge pull request #133 from shogo82148/fix-lint-warnings
Browse files Browse the repository at this point in the history
fix lint warnings
  • Loading branch information
Songmu authored Jun 15, 2021
2 parents 250d333 + c79fee2 commit b0e709e
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion cli.go
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ func (cli *CLI) Run(args []string) int {

// Show version and check latest version release
if version {
fmt.Fprintf(cli.outStream, OutputVersion())
fmt.Fprint(cli.outStream, OutputVersion())
return ExitCodeOK
}

Expand Down
2 changes: 1 addition & 1 deletion github_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ func TestGitHubClient_Upload(t *testing.T) {

githubClient, ok := client.(*GitHubClient)
if !ok {
t.Fatal("Faield to asset to GithubClient")
t.Fatal("Failed to asset to GithubClient")
}

rc, url, err := githubClient.Repositories.DownloadReleaseAsset(
Expand Down
2 changes: 1 addition & 1 deletion local.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import (
// LocalAssets contains the local objects to be uploaded
func LocalAssets(path string) ([]string, error) {
if path == "" {
return make([]string, 0, 0), nil
return []string{}, nil
}

path, err := filepath.Abs(path)
Expand Down

0 comments on commit b0e709e

Please sign in to comment.