Skip to content

Commit

Permalink
fixes gocritic:importShadow: shadow of imported package 'url'
Browse files Browse the repository at this point in the history
  • Loading branch information
Maed223 committed Oct 31, 2024
1 parent 4fb3d9c commit 314ef77
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions disco/host_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -53,15 53,15 @@ func TestHostServiceURL(t *testing.T) {

for _, test := range tests {
t.Run(test.ID, func(t *testing.T) {
url, err := host.ServiceURL(test.ID)
serviceUrl, err := host.ServiceURL(test.ID)
if (err != nil || test.err != "") &&
(err == nil || !strings.Contains(err.Error(), test.err)) {
t.Fatalf("unexpected service URL error: %s", err)
}

var got string
if url != nil {
got = url.String()
if serviceUrl != nil {
got = serviceUrl.String()
} else {
got = "<nil>"
}
Expand Down

0 comments on commit 314ef77

Please sign in to comment.