lib/rubocop/cop/salsify/style_dig.rb in salsify_rubocop-0.78.1 vs lib/rubocop/cop/salsify/style_dig.rb in salsify_rubocop-0.85.0
- old
+ new
@@ -1,5 +1,7 @@
+# frozen_string_literal: true
+
# This may be added in the near future to rubocop, see https://github.com/bbatsov/rubocop/issues/5332
module RuboCop
module Cop
module Salsify
@@ -19,10 +21,10 @@
class StyleDig < Cop
extend TargetRubyVersion
minimum_target_ruby_version 2.3
- MSG = 'Use `dig` for nested access.'.freeze
+ MSG = 'Use `dig` for nested access.'
def_node_matcher :nested_access_match, <<-PATTERN
(send (send (send _receiver !:[]) :[] !{irange erange}) :[] !{irange erange})
PATTERN