summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorDouglas Barbosa Alexandre <dbalexandre@gmail.com>2018-09-19 16:55:53 +0000
committerDouglas Barbosa Alexandre <dbalexandre@gmail.com>2018-09-19 16:55:53 +0000
commit3f51ec2124037177b446d620c41441673f17f161 (patch)
tree308ed4035bc67f7eb400646d1a1d4404c85db51a /lib
parent9d5e00e66bf598d9fbc5f18caeb6326073a5428e (diff)
parentdef3ab29719846758cef8f1e1a5cb5f88320bc48 (diff)
downloadgitlab-ce-3f51ec2124037177b446d620c41441673f17f161.tar.gz
Merge branch 'fix-rubocop-todo' into 'master'
Fix rubocop Style/ZeroLengthPredicate See merge request gitlab-org/gitlab-ce!21793
Diffstat (limited to 'lib')
-rw-r--r--lib/extracts_path.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/extracts_path.rb b/lib/extracts_path.rb
index e8dbde176ef..e02d403f7b1 100644
--- a/lib/extracts_path.rb
+++ b/lib/extracts_path.rb
@@ -54,7 +54,7 @@ module ExtractsPath
valid_refs = ref_names.select { |v| id.start_with?("#{v}/") }
- if valid_refs.length == 0
+ if valid_refs.empty?
# No exact ref match, so just try our best
pair = id.match(%r{([^/]+)(.*)}).captures
else