summaryrefslogtreecommitdiff
path: root/lib/container_registry
diff options
context:
space:
mode:
authorGrzegorz Bizon <grzesiek.bizon@gmail.com>2017-03-28 16:20:16 +0200
committerGrzegorz Bizon <grzesiek.bizon@gmail.com>2017-03-29 12:11:38 +0200
commit8584798886a8c7d0077157c29e0dc05087656aaf (patch)
treec9f0198e872c876d2312710a772611f56afd6622 /lib/container_registry
parentbdc1e1b9e005eeaf564b79698d61a801c3c6360f (diff)
downloadgitlab-ce-8584798886a8c7d0077157c29e0dc05087656aaf.tar.gz
Fix rubocop offense in container registry path class
Diffstat (limited to 'lib/container_registry')
-rw-r--r--lib/container_registry/path.rb3
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/container_registry/path.rb b/lib/container_registry/path.rb
index 89ef396f374..0ca51ab3766 100644
--- a/lib/container_registry/path.rb
+++ b/lib/container_registry/path.rb
@@ -8,8 +8,7 @@ module ContainerRegistry
end
def valid?
- @nodes.size > 1 &&
- @nodes.size < Namespace::NUMBER_OF_ANCESTORS_ALLOWED
+ @nodes.size > 1 && @nodes.size < Namespace::NUMBER_OF_ANCESTORS_ALLOWED
end
def components