Skip to content

Commit

Permalink
Fix style violaations
Browse files Browse the repository at this point in the history
  • Loading branch information
mhenrixon committed Aug 16, 2016
1 parent 6043185 commit a89fb6a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/sapience/core_ext/hash.rb
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ def _deep_transform_keys_in_object!(object, &block)
end
object
when Array
object.map! { |e| _deep_transform_keys_in_object!(e, &block)}
object.map! { |e| _deep_transform_keys_in_object!(e, &block) }
else
object
end
Expand Down
4 changes: 3 additions & 1 deletion lib/sapience/subscriber.rb
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,8 @@ def level_index
# - Any object that responds to :call
# - If none of the above apply, then the supplied block is returned as the formatter.
# - Otherwise an instance of the default formatter is returned.
def extract_formatter(formatter, &block) # rubocop:disable Metrics/CyclomaticComplexity
# rubocop:disable CyclomaticComplexity, AbcSize, PerceivedComplexity
def extract_formatter(formatter, &block)
case
when formatter.is_a?(Symbol)
Sapience.constantize_symbol(formatter, "Sapience::Formatters").new
Expand All @@ -115,6 +116,7 @@ def extract_formatter(formatter, &block) # rubocop:disable Metrics/CyclomaticCom
default_formatter
end
end
# rubocop:enable CyclomaticComplexity, AbcSize, PerceivedComplexity

SUBSCRIBER_OPTIONS = [:level, :formatter, :filter, :application, :host].freeze

Expand Down

0 comments on commit a89fb6a

Please sign in to comment.