Skip to content

Commit bfe87fd

Browse files
authored
Merge pull request #4105 from thaJeztah/fix_comments
cli/command: ElectAuthServer: fix deprecation comment
2 parents 235b501 + 742881f commit bfe87fd

File tree

2 files changed

+6
-8
lines changed

2 files changed

+6
-8
lines changed

cli/command/registry.go

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,9 @@ import (
2121
"github.com/pkg/errors"
2222
)
2323

24-
// ElectAuthServer returns the default registry to use
25-
// Deprecated: use registry.IndexServer instead
24+
// ElectAuthServer returns the default registry to use.
25+
//
26+
// Deprecated: use [registry.IndexServer] instead.
2627
func ElectAuthServer(_ context.Context, _ Cli) string {
2728
return registry.IndexServer
2829
}

cli/command/registry_test.go

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6,16 +6,13 @@ import (
66
"fmt"
77
"testing"
88

9-
"gotest.tools/v3/assert"
10-
is "gotest.tools/v3/assert/cmp"
11-
12-
// Prevents a circular import with "github.com/docker/cli/internal/test"
13-
14-
. "github.com/docker/cli/cli/command"
9+
. "github.com/docker/cli/cli/command" // Prevents a circular import with "github.com/docker/cli/internal/test"
1510
configtypes "github.com/docker/cli/cli/config/types"
1611
"github.com/docker/cli/internal/test"
1712
"github.com/docker/docker/api/types"
1813
"github.com/docker/docker/client"
14+
"gotest.tools/v3/assert"
15+
is "gotest.tools/v3/assert/cmp"
1916
)
2017

2118
type fakeClient struct {

0 commit comments

Comments
 (0)