Skip to content

Commit a4d8ef4

Browse files
committed
[CLEANUP] Fix lint issue
Signed-off-by: Ilya Eryomenko <[email protected]>
1 parent 32433c9 commit a4d8ef4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

internal/action/repl.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ func (f *mindFlagsCompleter) Do(line []rune, pos int) ([][]rune, int) {
2121
// Get the portion of the line up to the cursor and split to tokens
2222
origInput := string(line[:pos])
2323
tokens := strings.Fields(origInput)
24-
var filtered []string
24+
filtered := make([]string, 0, len(tokens))
2525
for _, tok := range tokens {
2626
// Skip flag tokens
2727
if strings.HasPrefix(tok, "-") {
@@ -34,10 +34,10 @@ func (f *mindFlagsCompleter) Do(line []rune, pos int) ([][]rune, int) {
3434
if len(origInput) > 0 && origInput[len(origInput)-1] == ' ' {
3535
sanitized += " "
3636
}
37+
3738
return f.base.Do([]rune(sanitized), len([]rune(sanitized)))
3839
}
3940

40-
4141
func (s *Action) entriesForCompleter(ctx context.Context) ([]*readline.PrefixCompleter, error) {
4242
args := []*readline.PrefixCompleter{}
4343
list, err := s.Store.List(ctx, tree.INF)

0 commit comments

Comments
 (0)