Skip to content

Commit

Permalink
Be consistent with the number of lines
Browse files Browse the repository at this point in the history
0 plugins -> empty string (instead of 2 lines)
1 plugin -> 1 line (instead of 2 lines)
2 plugins -> 2 lines (instead of 3 lines)
  • Loading branch information
corneliusweig committed Jun 10, 2019
1 parent 44fdfb4 commit 356a9ee
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/krew/cmd/list.go
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ Remarks:
names = append(names, name)
}
sort.Strings(names)
fmt.Fprintln(os.Stdout, strings.Join(names, "\n"))
fmt.Fprint(os.Stdout, strings.Join(names, "\n"))
return nil
}

Expand Down
1 change: 1 addition & 0 deletions test/krew_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -162,6 +162,7 @@ func TestKrewUpdate(t *testing.T) {
test, cleanup := krew.NewTest(t)
defer cleanup()

// nb do not call WithIndex() here
test.Krew("update").RunOrFail()
plugins := lines(test.Krew("search").RunOrFailOutput())
if len(plugins) < 10 {
Expand Down

0 comments on commit 356a9ee

Please sign in to comment.