Skip to content

Commit 1715525

Browse files
authored
chore(lint): fix some minor lint errors in registry-scanner submodule (#1251)
Signed-off-by: Cheng Fang <[email protected]>
1 parent 8c9172e commit 1715525

File tree

3 files changed

+5
-7
lines changed

3 files changed

+5
-7
lines changed

registry-scanner/pkg/registry/client_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,8 @@ import (
2121
"github.com/stretchr/testify/mock"
2222
"github.com/stretchr/testify/require"
2323

24-
"github.com/argoproj-labs/argocd-image-updater/registry-scanner/pkg/log"
2524
"github.com/argoproj-labs/argocd-image-updater/registry-scanner/pkg/image"
25+
"github.com/argoproj-labs/argocd-image-updater/registry-scanner/pkg/log"
2626
"github.com/argoproj-labs/argocd-image-updater/registry-scanner/pkg/options"
2727
"github.com/argoproj-labs/argocd-image-updater/registry-scanner/pkg/registry/mocks"
2828
"github.com/argoproj-labs/argocd-image-updater/registry-scanner/pkg/tag"

registry-scanner/pkg/registry/endpoints_test.go

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@ import (
1212

1313
"github.com/stretchr/testify/assert"
1414
"github.com/stretchr/testify/require"
15-
1615
)
1716

1817
func TestInferRegistryEndpointFromPrefix(t *testing.T) {
@@ -426,4 +425,3 @@ func TestIsTransportValid(t *testing.T) {
426425
assert.False(t, isTransportValid(transport), "Transport with invalid settings should be invalid")
427426
})
428427
}
429-

registry-scanner/pkg/registry/registry_test.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -176,7 +176,7 @@ echo "AWS:mock-token-12345"
176176
err := os.WriteFile(scriptPath, []byte(scriptContent), 0755)
177177
require.NoError(t, err)
178178
defer os.Remove(scriptPath)
179-
179+
180180
// Clean up any existing log file
181181
os.Remove("/tmp/test_ecr_calls.log")
182182
defer os.Remove("/tmp/test_ecr_calls.log")
@@ -239,7 +239,7 @@ registries:
239239

240240
t.Run("Concurrent calls with unexpired credentials should not refetch", func(t *testing.T) {
241241
var callCount int32
242-
242+
243243
epYAML := `
244244
registries:
245245
- name: Test Registry
@@ -250,15 +250,15 @@ registries:
250250
`
251251
epl, err := ParseRegistryConfiguration(epYAML)
252252
require.NoError(t, err)
253-
253+
254254
err = AddRegistryEndpointFromConfig(epl.Items[0])
255255
require.NoError(t, err)
256256
ep, err := GetRegistryEndpoint(&image.ContainerImage{RegistryURL: "test.registry.io"})
257257
require.NoError(t, err)
258258

259259
// Set environment variable
260260
os.Setenv("TEST_CONCURRENT_CREDS", "user:pass")
261-
261+
262262
// First call to set credentials
263263
err = ep.SetEndpointCredentials(nil)
264264
require.NoError(t, err)

0 commit comments

Comments
 (0)