Skip to content

Commit b0e709e

Browse files
authored
Merge pull request #133 from shogo82148/fix-lint-warnings
fix lint warnings
2 parents 250d333 + c79fee2 commit b0e709e

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

cli.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,7 @@ func (cli *CLI) Run(args []string) int {
155155

156156
// Show version and check latest version release
157157
if version {
158-
fmt.Fprintf(cli.outStream, OutputVersion())
158+
fmt.Fprint(cli.outStream, OutputVersion())
159159
return ExitCodeOK
160160
}
161161

github_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,7 @@ func TestGitHubClient_Upload(t *testing.T) {
149149

150150
githubClient, ok := client.(*GitHubClient)
151151
if !ok {
152-
t.Fatal("Faield to asset to GithubClient")
152+
t.Fatal("Failed to asset to GithubClient")
153153
}
154154

155155
rc, url, err := githubClient.Repositories.DownloadReleaseAsset(

local.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ import (
1010
// LocalAssets contains the local objects to be uploaded
1111
func LocalAssets(path string) ([]string, error) {
1212
if path == "" {
13-
return make([]string, 0, 0), nil
13+
return []string{}, nil
1414
}
1515

1616
path, err := filepath.Abs(path)

0 commit comments

Comments
 (0)