lib/node_mutation.rb in node_mutation-1.18.2 vs lib/node_mutation.rb in node_mutation-1.18.3

- old
+ new

@@ -206,11 +206,11 @@ # end # end def wrap(node, prefix:, suffix:, newline: false) if newline indentation = NodeMutation.adapter.get_start_loc(node).column - @actions << InsertAction.new(node, prefix + "\n" + ' ' * indentation, at: 'beginning').process - @actions << InsertAction.new(node, "\n" + ' ' * indentation + suffix, at: 'end').process + @actions << InsertAction.new(node, prefix + "\n" + (' ' * indentation), at: 'beginning').process + @actions << InsertAction.new(node, "\n" + (' ' * indentation) + suffix, at: 'end').process @actions << IndentAction.new(node).process else @actions << InsertAction.new(node, prefix, at: 'beginning').process @actions << InsertAction.new(node, suffix, at: 'end').process end