Commit 013bccbd authored by Robert Speicher's avatar Robert Speicher

Enable Style/DefWithParentheses cop and fix single offense

parent bc806831
......@@ -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