Skip to content

Commit

Permalink
fix lint warnings
Browse files Browse the repository at this point in the history
- printf-style function with dynamic format string and no further arguments should use print-style function instead (SA1006) go-staticcheck
- should use make([]string, 0) instead (S1019) go-staticcheck
  • Loading branch information
shogo82148 committed Jun 15, 2021
1 parent d43a5d2 commit 99ab4f5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 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 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 99ab4f5

Please sign in to comment.