summaryrefslogtreecommitdiff
path: root/app
diff options
context:
space:
mode:
authorRobert Speicher <rspeicher@gmail.com>2016-05-23 14:16:35 -0400
committerRobert Speicher <rspeicher@gmail.com>2016-05-23 14:16:35 -0400
commit3ba72f69af69d9fb2c46cb6c25d571f92ffd2ee1 (patch)
treef5b527f659bc3fe4e417c63ac9bd6fe0c97e5250 /app
parent68b8e86a813608ae378b39ba5a64ff07fb9a057a (diff)
downloadgitlab-ce-3ba72f69af69d9fb2c46cb6c25d571f92ffd2ee1.tar.gz
Enable Style/SpaceAroundKeyword cop and fix offenses
Diffstat (limited to 'app')
-rw-r--r--app/helpers/application_helper.rb3
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