Commit 74ce3faa authored by Robert Speicher's avatar Robert Speicher

Merge branch 'rs-def-with-parenthesis' into 'master'

Enable Style/DefWithParentheses cop and fix single offense

Ref: https://gitlab.com/gitlab-org/gitlab-ce/issues/17478

See merge request !4254
parents 68b8e86a 013bccbd
......@@ -152,7 +152,7 @@ Style/ConstantName:
# Use def with parentheses when there are arguments.
Style/DefWithParentheses:
Enabled: false
Enabled: true
# Checks for use of deprecated Hash methods.
Style/DeprecatedHashMethods:
......
......@@ -29,7 +29,7 @@ module API
@current_user
end
def sudo_identifier()
def sudo_identifier
identifier ||= params[SUDO_PARAM] || env[SUDO_HEADER]
# Regex for integers
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment