File tree Expand file tree Collapse file tree 1 file changed +4
-7
lines changed
Expand file tree Collapse file tree 1 file changed +4
-7
lines changed Original file line number Diff line number Diff line change @@ -26,16 +26,13 @@ func TestSecretServiceHelper(t *testing.T) {
2626
2727 // If any docker credentials with the tests values we are providing, we
2828 // remove them as they probably come from a previous failed test
29- if len (old_auths ) >= 1 {
30- for k , v := range old_auths {
31- if strings .Compare (k , creds .ServerURL ) == 0 && strings .Compare (v , creds .Username ) == 0 {
29+ for k , v := range old_auths {
30+ if strings .Compare (k , creds .ServerURL ) == 0 && strings .Compare (v , creds .Username ) == 0 {
3231
33- if err := helper .Delete (creds .ServerURL ); err != nil {
34- t .Fatal (err )
35- }
32+ if err := helper .Delete (creds .ServerURL ); err != nil {
33+ t .Fatal (err )
3634 }
3735 }
38-
3936 }
4037
4138 // Check again how many docker credentials we have when starting the test
You can’t perform that action at this time.
0 commit comments