Explorar o código

Removes redundant else in registry/session.go

Fixes #12523

Signed-off-by: Rick Wieman <git@rickw.nl>
Rick Wieman %!s(int64=10) %!d(string=hai) anos
pai
achega
5f2b051ec5
Modificáronse 1 ficheiros con 2 adicións e 1 borrados
  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 {
 		if res.StatusCode == 404 {
 			return nil, fmt.Errorf("Repository not found")
 			return nil, fmt.Errorf("Repository not found")
-		} else if res.StatusCode != 200 {
+		}
+		if res.StatusCode != 200 {
 			continue
 			continue
 		}
 		}