diff options
author | Douwe Maan <douwe@selenight.nl> | 2017-02-21 18:16:48 -0600 |
---|---|---|
committer | Douwe Maan <douwe@selenight.nl> | 2017-02-23 09:31:57 -0600 |
commit | ccbebbdfeb9ce78c0a386ae08ae88aeb7dc5ad86 (patch) | |
tree | 5682d86e241733bd1bca2289ec063e4fde5e7414 /lib/extracts_path.rb | |
parent | 215228b477e9dae8cf3ba36af767ae12d4328e28 (diff) | |
download | gitlab-ce-ccbebbdfeb9ce78c0a386ae08ae88aeb7dc5ad86.tar.gz |
Enable Performance/RedundantMatch
Diffstat (limited to 'lib/extracts_path.rb')
-rw-r--r-- | lib/extracts_path.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/extracts_path.rb b/lib/extracts_path.rb index 82551f1f222..1a6ad039bc0 100644 --- a/lib/extracts_path.rb +++ b/lib/extracts_path.rb @@ -42,7 +42,7 @@ module ExtractsPath return pair unless @project - if id.match(/^([[:alnum:]]{40})(.+)/) + if id =~ /^([[:alnum:]]{40})(.+)/ # If the ref appears to be a SHA, we're done, just split the string pair = $~.captures else |