diff --git a/cli.go b/cli.go index c16a0a1..b818a19 100644 --- a/cli.go +++ b/cli.go @@ -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 } diff --git a/github_test.go b/github_test.go index 9405735..3ecec64 100644 --- a/github_test.go +++ b/github_test.go @@ -122,7 +122,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( diff --git a/local.go b/local.go index db5aad8..527e58e 100644 --- a/local.go +++ b/local.go @@ -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)