CHORE: lint (#2619)

This commit is contained in:
Tom Limoncelli 2023-11-12 16:36:46 -05:00 committed by GitHub
parent f2420e5fd4
commit 7a1effb1d2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -3,11 +3,12 @@ package commands
import (
"bytes"
"fmt"
"github.com/google/go-cmp/cmp"
"strings"
"testing"
"text/template"
"github.com/google/go-cmp/cmp"
"github.com/urfave/cli/v2"
"golang.org/x/exp/slices"
)
@ -178,7 +179,7 @@ func TestShellCompletionCommand(t *testing.T) {
for _, tt := range shellsAndCompletionScripts {
testCases[0].expected = append(testCases[0].expected, tt.shellName)
for i, _ := range tt.shellName {
for i := range tt.shellName {
testCases = append(testCases, testCase{
shellArg: tt.shellName[:i+1],
expected: []string{tt.shellName},