diff options
author | Robert Speicher <rspeicher@gmail.com> | 2016-05-23 14:16:35 -0400 |
---|---|---|
committer | Robert Speicher <rspeicher@gmail.com> | 2016-05-23 14:16:35 -0400 |
commit | 3ba72f69af69d9fb2c46cb6c25d571f92ffd2ee1 (patch) | |
tree | f5b527f659bc3fe4e417c63ac9bd6fe0c97e5250 /app | |
parent | 68b8e86a813608ae378b39ba5a64ff07fb9a057a (diff) | |
download | gitlab-ce-3ba72f69af69d9fb2c46cb6c25d571f92ffd2ee1.tar.gz |
Enable Style/SpaceAroundKeyword cop and fix offenses
Diffstat (limited to 'app')
-rw-r--r-- | app/helpers/application_helper.rb | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/app/helpers/application_helper.rb b/app/helpers/application_helper.rb index 3e0074da394..e6e2546b92f 100644 --- a/app/helpers/application_helper.rb +++ b/app/helpers/application_helper.rb @@ -110,8 +110,7 @@ module ApplicationHelper ] # If reference is commit id - we should add it to branch/tag selectbox - if(@ref && !options.flatten.include?(@ref) && - @ref =~ /\A[0-9a-zA-Z]{6,52}\z/) + if @ref && !options.flatten.include?(@ref) && @ref =~ /\A[0-9a-zA-Z]{6,52}\z/ options << ['Commit', [@ref]] end |