1
0
mirror of https://github.com/StackExchange/dnscontrol.git synced 2024-05-11 05:55:12 +00:00

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

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},