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: ...@@ -152,7 +152,7 @@ Style/ConstantName:
# Use def with parentheses when there are arguments. # Use def with parentheses when there are arguments.
Style/DefWithParentheses: Style/DefWithParentheses:
Enabled: false Enabled: true
# Checks for use of deprecated Hash methods. # Checks for use of deprecated Hash methods.
Style/DeprecatedHashMethods: Style/DeprecatedHashMethods:
......
...@@ -29,7 +29,7 @@ module API ...@@ -29,7 +29,7 @@ module API
@current_user @current_user
end end
def sudo_identifier() def sudo_identifier
identifier ||= params[SUDO_PARAM] || env[SUDO_HEADER] identifier ||= params[SUDO_PARAM] || env[SUDO_HEADER]
# Regex for integers # 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