golint
This commit is contained in:
1 parent
ed5104cfdb
commit
9e5d386304
1 file changed
+4
-5
@@ -1119,14 +1119,13 @@ func listMatchesMenu(ui *ui, matches []string) error {
|
|||||||
|
|
||||||
ncol := wtot / wcol
|
ncol := wtot / wcol
|
||||||
|
|
||||||
bytesWrote := 0
|
n, err := b.WriteString("possible matches\n")
|
||||||
|
if err != nil {
|
||||||
if n, err := b.WriteString("possible matches\n"); err != nil {
|
|
||||||
return err
|
return err
|
||||||
} else {
|
|
||||||
bytesWrote += n
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
bytesWrote := n
|
||||||
|
|
||||||
for i := 0; i < len(matches); {
|
for i := 0; i < len(matches); {
|
||||||
for j := 0; j < ncol && i < len(matches); i, j = i+1, j+1 {
|
for j := 0; j < ncol && i < len(matches); i, j = i+1, j+1 {
|
||||||
target := matches[i]
|
target := matches[i]
|
||||||
|
|||||||
Reference in new issue
Block a user