Skip to content

Commit 0aff0ff

Browse files
corneliusweigk8s-ci-robot
authored andcommitted
Upgrade to golangci-lint v0.19.0 (#346)
..and fix one new issue
1 parent e88f854 commit 0aff0ff

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

cmd/krew/cmd/list.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -72,10 +72,10 @@ Remarks:
7272

7373
func printTable(out io.Writer, columns []string, rows [][]string) error {
7474
w := tabwriter.NewWriter(out, 0, 0, 2, ' ', 0)
75-
fmt.Fprintf(w, strings.Join(columns, "\t"))
75+
fmt.Fprint(w, strings.Join(columns, "\t"))
7676
fmt.Fprintln(w)
7777
for _, values := range rows {
78-
fmt.Fprintf(w, strings.Join(values, "\t"))
78+
fmt.Fprint(w, strings.Join(values, "\t"))
7979
fmt.Fprintln(w)
8080
}
8181
return w.Flush()

hack/run-lint.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ gopath="$(go env GOPATH)"
2323
if ! [[ -x "$gopath/bin/golangci-lint" ]]; then
2424
echo >&2 'Installing golangci-lint'
2525
curl --silent --fail --location \
26-
https://install.goreleaser.com/github.com/golangci/golangci-lint.sh | sh -s -- -b "$gopath/bin" v1.18.0
26+
https://install.goreleaser.com/github.com/golangci/golangci-lint.sh | sh -s -- -b "$gopath/bin" v1.19.0
2727
fi
2828

2929
# configured by .golangci.yml

0 commit comments

Comments
 (0)