소스 검색

modify a return value in graph/tags.go to increase readability

Signed-off-by: Shijiang Wei <mountkin@gmail.com>
Shijiang Wei 10 년 전
부모
커밋
f11b7acc73
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      graph/tags.go

+ 1 - 1
graph/tags.go

@@ -155,7 +155,7 @@ func (store *TagStore) LookupImage(name string) (*image.Image, error) {
 	}
 
 	if img != nil {
-		return img, err
+		return img, nil
 	}
 
 	// name must be an image ID.