Skip to content

Commit

Permalink
standardrb --only Standard/BlockSingleLineBraces --fix
Browse files Browse the repository at this point in the history
  • Loading branch information
halostatue committed Jul 5, 2022
1 parent f7b3ef0 commit dce58ac
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions lib/diff/lcs/htmldiff.rb
Original file line number Diff line number Diff line change
Expand Up @@ -120,12 +120,12 @@ def run
formatter = Text::Format.new
formatter.tabstop = @options[:expand_tabs]

@left.map! do |line| formatter.expand(line.chomp) end
@right.map! do |line| formatter.expand(line.chomp) end
@left.map! { |line| formatter.expand(line.chomp) }
@right.map! { |line| formatter.expand(line.chomp) }
end

@left.map! do |line| CGI.escapeHTML(line.chomp) end
@right.map! do |line| CGI.escapeHTML(line.chomp) end
@left.map! { |line| CGI.escapeHTML(line.chomp) }
@right.map! { |line| CGI.escapeHTML(line.chomp) }

# standard:disable Layout/HeredocIndentation
@options[:output] << <<-OUTPUT
Expand Down
2 changes: 1 addition & 1 deletion spec/diff_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@

diff = Diff::LCS.diff([], word_sequence)
correct_diff.each do |hunk|
hunk.each do |change| change[0] = "+" end
hunk.each { |change| change[0] = "+" }
end
expect(change_diff(correct_diff)).to eq(diff)
end
Expand Down

0 comments on commit dce58ac

Please sign in to comment.