lib/rubocop/cop/mixin/space_before_punctuation.rb in rubocop-0.26.1 vs lib/rubocop/cop/mixin/space_before_punctuation.rb in rubocop-0.27.0
- old
+ new
@@ -8,10 +8,10 @@
MSG = 'Space found before %s.'
def investigate(processed_source)
processed_source.tokens.each_cons(2) do |t1, t2|
next unless kind(t2) && t1.pos.line == t2.pos.line &&
- t2.pos.begin_pos > t1.pos.end_pos
+ t2.pos.begin_pos > t1.pos.end_pos
buffer = processed_source.buffer
pos_before_punctuation = Parser::Source::Range.new(buffer,
t1.pos.end_pos,
t2.pos.begin_pos)