Skip to content

Commit

Permalink
Upgrade to golangci-lint v0.19.0 (#346)
Browse files Browse the repository at this point in the history
..and fix one new issue
  • Loading branch information
corneliusweig authored and k8s-ci-robot committed Sep 24, 2019
1 parent e88f854 commit 0aff0ff
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions cmd/krew/cmd/list.go
Original file line number Diff line number Diff line change
Expand Up @@ -72,10 +72,10 @@ Remarks:

func printTable(out io.Writer, columns []string, rows [][]string) error {
w := tabwriter.NewWriter(out, 0, 0, 2, ' ', 0)
fmt.Fprintf(w, strings.Join(columns, "\t"))
fmt.Fprint(w, strings.Join(columns, "\t"))
fmt.Fprintln(w)
for _, values := range rows {
fmt.Fprintf(w, strings.Join(values, "\t"))
fmt.Fprint(w, strings.Join(values, "\t"))
fmt.Fprintln(w)
}
return w.Flush()
Expand Down
2 changes: 1 addition & 1 deletion hack/run-lint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ gopath="$(go env GOPATH)"
if ! [[ -x "$gopath/bin/golangci-lint" ]]; then
echo >&2 'Installing golangci-lint'
curl --silent --fail --location \
https://install.goreleaser.com/github.com/golangci/golangci-lint.sh | sh -s -- -b "$gopath/bin" v1.18.0
https://install.goreleaser.com/github.com/golangci/golangci-lint.sh | sh -s -- -b "$gopath/bin" v1.19.0
fi

# configured by .golangci.yml
Expand Down

0 comments on commit 0aff0ff

Please sign in to comment.