Przeglądaj źródła

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

Removes redundant else in registry/session.go
Alexander Morozov 10 lat temu
rodzic
commit
b7950b725b
1 zmienionych plików z 2 dodań i 1 usunięć
  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
 		}
 		}