Enable Style/DefWithParentheses cop and fix single offense
This commit is contained in:
parent
bc806831e8
commit
013bccbd93
2 changed files with 2 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue