Skip to content

Commit

Permalink
Code style
Browse files Browse the repository at this point in the history
  • Loading branch information
akzhan committed Sep 13, 2010
1 parent 01fac42 commit f362f14
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/diff_to_html.rb
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ def operation_description
"<h2>#{header}</h2>\n"
end

def lines_are_sequential(first, second)
def lines_are_sequential?(first, second)
result = false
[:added, :removed].each do |side|
if !first[side].nil? && !second[side].nil?
Expand Down Expand Up @@ -174,7 +174,7 @@ def add_changes_to_result
additions = []
if index > 0 && index != @diff_lines.size - 1
prev_line = @diff_lines[index - 1]
add_separator unless lines_are_sequential(prev_line, line)
add_separator unless lines_are_sequential?(prev_line, line)
end
add_line_to_result(line, escape = true) if line[:op] == :unchanged
end
Expand Down

0 comments on commit f362f14

Please sign in to comment.