Fix Lint/UnderscorePrefixedVariableName issue and remove it from rubocop_todo file

This commit is contained in:
Bertocq
2017-06-16 00:28:50 +02:00
parent db97314f7b
commit c88d822330
2 changed files with 5 additions and 2 deletions

View File

@@ -14,6 +14,7 @@ Lint/InheritException:
Exclude:
- 'app/controllers/concerns/feature_flags.rb'
<<<<<<< HEAD
# Offense count: 13
Lint/ParenthesesAsGroupedExpression:
Exclude:
@@ -27,6 +28,8 @@ Lint/UnderscorePrefixedVariableName:
Exclude:
- 'lib/manager_authenticator.rb'
=======
>>>>>>> 0da0d145c... Fix Lint/UnderscorePrefixedVariableName issue and remove it from rubocop_todo file
# Offense count: 4
# Cop supports --auto-correct.
# Configuration parameters: IgnoreEmptyBlocks, AllowUnusedKeywordArguments.

View File

@@ -5,7 +5,7 @@ class ManagerAuthenticator
end
def auth
return false unless [@manager[:login], @manager[:user_key], @manager[:date]].all? {|_| _.present?}
return false unless [@manager[:login], @manager[:user_key], @manager[:date]].all? {|manager| manager.present?}
return @manager if manager_exists? && application_authorized?
false
end