lib/rubocop/cop/chef/deprecation/deprecated_chefspec_platform.rb in cookstyle-6.18.8 vs lib/rubocop/cop/chef/deprecation/deprecated_chefspec_platform.rb in cookstyle-6.19.5

- old
+ new

@@ -118,10 +118,10 @@ def on_send(node) chefspec_definition?(node) do |plat, ver| next unless legacy_chefspec_platform(plat.value, ver.value) add_offense(node, message: MSG, severity: :warning) do |corrector| if replacement = replacement_string(plat.value, ver.value) # rubocop: disable Lint/AssignmentInCondition - corrector.replace(ver.loc.expression, "'#{replacement}'") + corrector.replace(ver, "'#{replacement}'") end end end end end