Enable Style/DefWithParentheses cop and fix single offense

This commit is contained in:
Robert Speicher 2016-05-23 13:06:36 -04:00
parent bc806831e8
commit 013bccbd93
2 changed files with 2 additions and 2 deletions

View file

@ -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:

View file

@ -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