lib/chamber/context_resolver.rb in chamber-3.1.0 vs lib/chamber/context_resolver.rb in chamber-3.1.1

- old
+ new

@@ -16,11 +16,11 @@ def initialize(**args) self.options = args end - # rubocop:disable Metrics/CyclomaticComplexity, Metrics/PerceivedComplexity, Metrics/AbcSize, Layout/LineLength + # rubocop:disable Metrics/CyclomaticComplexity, Metrics/PerceivedComplexity, Metrics/AbcSize, Layout/LineLength, Lint/SelfAssignment def resolve options[:rootpath] ||= Pathname.pwd options[:rootpath] = Pathname.new(options[:rootpath]) options[:namespaces] ||= [] options[:preset] ||= resolve_preset @@ -48,10 +48,10 @@ options[:signature_name] = options[:signature_name] options end - # rubocop:enable Metrics/CyclomaticComplexity, Metrics/PerceivedComplexity, Metrics/AbcSize, Layout/LineLength + # rubocop:enable Metrics/CyclomaticComplexity, Metrics/PerceivedComplexity, Metrics/AbcSize, Layout/LineLength, Lint/SelfAssignment protected def resolve_namespaces(other) (other.respond_to?(:values) ? other.values : other)