diff options
author | Rémy Coutable <remy@rymai.me> | 2017-08-16 10:27:46 +0000 |
---|---|---|
committer | Rémy Coutable <remy@rymai.me> | 2017-08-16 10:27:46 +0000 |
commit | 7b68bdce15a2f02d0b55d9fd43473408858cd6b6 (patch) | |
tree | 8430a7fc007a57398e08ebbce9a7c28fcdf33e8f /lib/constraints/project_url_constrainer.rb | |
parent | 1b46a8360e0adffba79fad5730e94e333350f063 (diff) | |
parent | 142b9ec4a0b3e5d5cbcbb2fc3b201755f0966b9f (diff) | |
download | gitlab-ce-7b68bdce15a2f02d0b55d9fd43473408858cd6b6.tar.gz |
Merge branch 'rs-trailingwhitespace-cop' into 'master'
Enable Layout/TrailingWhitespace cop and auto-correct offenses
See merge request !13573
Diffstat (limited to 'lib/constraints/project_url_constrainer.rb')
-rw-r--r-- | lib/constraints/project_url_constrainer.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/constraints/project_url_constrainer.rb b/lib/constraints/project_url_constrainer.rb index fd7b97d3167..5bef29eb1da 100644 --- a/lib/constraints/project_url_constrainer.rb +++ b/lib/constraints/project_url_constrainer.rb @@ -7,7 +7,7 @@ class ProjectUrlConstrainer return false unless DynamicPathValidator.valid_project_path?(full_path) # We intentionally allow SELECT(*) here so result of this query can be used - # as cache for further Project.find_by_full_path calls within request + # as cache for further Project.find_by_full_path calls within request Project.find_by_full_path(full_path, follow_redirects: request.get?).present? end end |