Removes redundant else in registry/session.go
Fixes #12523 Signed-off-by: Rick Wieman <git@rickw.nl>
This commit is contained in:
parent
742cf000d3
commit
4778468202
1 changed files with 2 additions and 1 deletions
|
@ -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
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue