Apply Style/SymbolProc rubocop rule
This style is much more concise.
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user