浏览代码

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

Removes redundant else in registry/session.go
Alexander Morozov 10 年之前
父节点
当前提交
b7950b725b
共有 1 个文件被更改,包括 2 次插入1 次删除
  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
 		}