Prefer reduce over inject

pull/8862/head
Javier Torres 8 years ago
parent d8981158c8
commit edc597e9d2

@ -116,7 +116,7 @@ Style/CollectionMethods:
collect!: map!
find_all: select
detect: find
reduce: inject
inject: reduce
Style/CommentAnnotation:
Description: Checks formatting of special comments (TODO, FIXME, OPTIMIZE, HACK,
REVIEW).

@ -3,7 +3,7 @@
module CartoDB
module Importer2
class Result
ATTRIBUTES = %w{ name schema extension tables success error_code log_trace support_tables original_name }
ATTRIBUTES = %w{ name schema extension tables success error_code log_trace support_tables original_name }.freeze
attr_reader *ATTRIBUTES.map(&:to_sym)
attr_writer :name

Loading…
Cancel
Save