aboutsummaryrefslogtreecommitdiff
path: root/vendor/github.com/docker/distribution/reference/reference.go
diff options
context:
space:
mode:
Diffstat (limited to 'vendor/github.com/docker/distribution/reference/reference.go')
-rw-r--r--vendor/github.com/docker/distribution/reference/reference.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/vendor/github.com/docker/distribution/reference/reference.go b/vendor/github.com/docker/distribution/reference/reference.go
index 2f66cca87..8c0c23b2f 100644
--- a/vendor/github.com/docker/distribution/reference/reference.go
+++ b/vendor/github.com/docker/distribution/reference/reference.go
@@ -205,7 +205,7 @@ func Parse(s string) (Reference, error) {
var repo repository
nameMatch := anchoredNameRegexp.FindStringSubmatch(matches[1])
- if nameMatch != nil && len(nameMatch) == 3 {
+ if len(nameMatch) == 3 {
repo.domain = nameMatch[1]
repo.path = nameMatch[2]
} else {