From cebf1b0a730fc6949e4bfd9a3da9b074eccdca53 Mon Sep 17 00:00:00 2001 From: Vadym Popov Date: Tue, 17 Dec 2024 12:04:48 -0800 Subject: [PATCH] Fix golangci-lint warnings --- tool/tctl/common/tctl_test.go | 2 +- tool/tctl/sso/configure/command.go | 2 +- tool/tctl/sso/tester/command.go | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/tool/tctl/common/tctl_test.go b/tool/tctl/common/tctl_test.go index 909e3b5f34e18..f5593d46db036 100644 --- a/tool/tctl/common/tctl_test.go +++ b/tool/tctl/common/tctl_test.go @@ -69,7 +69,7 @@ func TestCommandMatchBeforeAuthConnect(t *testing.T) { // We set the command which is not defined to go through // all defined commands to ensure that auth client - // not initialised before command is matched. + // not initialized before command is matched. for _, c := range commands { match, err = c.TryRun(ctx, "non-existing-command", clientFunc) if err != nil { diff --git a/tool/tctl/sso/configure/command.go b/tool/tctl/sso/configure/command.go index 746e3cb97b013..77e4a75e6aa9e 100644 --- a/tool/tctl/sso/configure/command.go +++ b/tool/tctl/sso/configure/command.go @@ -20,7 +20,6 @@ package configure import ( "context" - tctlcfg "github.com/gravitational/teleport/tool/tctl/common/config" "os" "github.com/alecthomas/kingpin/v2" @@ -33,6 +32,7 @@ import ( "github.com/gravitational/teleport/lib/utils" logutils "github.com/gravitational/teleport/lib/utils/log" commonclient "github.com/gravitational/teleport/tool/tctl/common/client" + tctlcfg "github.com/gravitational/teleport/tool/tctl/common/config" ) // SSOConfigureCommand implements common.CLICommand interface diff --git a/tool/tctl/sso/tester/command.go b/tool/tctl/sso/tester/command.go index 8fdf3db25e96d..f9bd1aa30a8dd 100644 --- a/tool/tctl/sso/tester/command.go +++ b/tool/tctl/sso/tester/command.go @@ -22,7 +22,6 @@ import ( "context" "errors" "fmt" - tctlcfg "github.com/gravitational/teleport/tool/tctl/common/config" "io" "os" "strings" @@ -43,6 +42,7 @@ import ( "github.com/gravitational/teleport/lib/services" "github.com/gravitational/teleport/lib/utils" commonclient "github.com/gravitational/teleport/tool/tctl/common/client" + tctlcfg "github.com/gravitational/teleport/tool/tctl/common/config" ) // SSOTestCommand implements common.CLICommand interface