Skip to content

Commit

Permalink
golint
Browse files Browse the repository at this point in the history
  • Loading branch information
gokcehan committed Dec 19, 2020
1 parent ed5104c commit 9e5d386
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions ui.go
Original file line number Diff line number Diff line change
Expand Up @@ -1119,14 +1119,13 @@ func listMatchesMenu(ui *ui, matches []string) error {

ncol := wtot / wcol

bytesWrote := 0

if n, err := b.WriteString("possible matches\n"); err != nil {
n, err := b.WriteString("possible matches\n")
if err != nil {
return err
} else {
bytesWrote += n
}

bytesWrote := n

for i := 0; i < len(matches); {
for j := 0; j < ncol && i < len(matches); i, j = i+1, j+1 {
target := matches[i]
Expand Down

0 comments on commit 9e5d386

Please sign in to comment.