Skip to content

Commit

Permalink
Fix golangci-lint warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
vapopov committed Dec 17, 2024
1 parent 4b1e596 commit cebf1b0
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion tool/tctl/common/tctl_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
2 changes: 1 addition & 1 deletion tool/tctl/sso/configure/command.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@ package configure

import (
"context"
tctlcfg "github.com/gravitational/teleport/tool/tctl/common/config"
"os"

"github.com/alecthomas/kingpin/v2"
Expand All @@ -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
Expand Down
2 changes: 1 addition & 1 deletion tool/tctl/sso/tester/command.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@ import (
"context"
"errors"
"fmt"
tctlcfg "github.com/gravitational/teleport/tool/tctl/common/config"
"io"
"os"
"strings"
Expand All @@ -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
Expand Down

0 comments on commit cebf1b0

Please sign in to comment.