Apply Style/SymbolProc rubocop rule
This style is much more concise.
This commit is contained in:
@@ -4,7 +4,7 @@ class ManagerAuthenticator
|
||||
end
|
||||
|
||||
def auth
|
||||
return false unless [@manager[:login], @manager[:user_key], @manager[:date]].all? { |manager| manager.present? }
|
||||
return false unless [@manager[:login], @manager[:user_key], @manager[:date]].all?(&:present?)
|
||||
return @manager if manager_exists? && application_authorized?
|
||||
|
||||
false
|
||||
|
||||
@@ -66,7 +66,7 @@ class RemoteCensusApi
|
||||
end
|
||||
|
||||
def parse_response_path(path_value)
|
||||
path_value.split(".").map { |section| section.to_sym } if path_value.present?
|
||||
path_value.split(".").map(&:to_sym) if path_value.present?
|
||||
end
|
||||
end
|
||||
|
||||
|
||||
@@ -6,7 +6,7 @@ require "json"
|
||||
class RemoteTranslations::Microsoft::AvailableLocales
|
||||
def self.available_locales
|
||||
daily_cache("locales") do
|
||||
remote_available_locales.map { |locale| locale.first }
|
||||
remote_available_locales.map(&:first)
|
||||
end
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user