Parcourir la source

Merge pull request #12524 from RickWieman/12523-remove-redundant-else

Removes redundant else in registry/session.go
Alexander Morozov il y a 10 ans
Parent
commit
b7950b725b
1 fichiers modifiés avec 2 ajouts et 1 suppressions
  1. 2 1
      registry/session.go

+ 2 - 1
registry/session.go

@@ -224,7 +224,8 @@ func (r *Session) GetRemoteTags(registries []string, repository string, token []
 
 		if res.StatusCode == 404 {
 			return nil, fmt.Errorf("Repository not found")
-		} else if res.StatusCode != 200 {
+		}
+		if res.StatusCode != 200 {
 			continue
 		}