From f362f14e9d56fcbc6590aa1a4d3a3a69ffa2ccb4 Mon Sep 17 00:00:00 2001 From: Akzhan Abdulin Date: Sun, 12 Sep 2010 12:58:46 +0400 Subject: [PATCH] Code style --- lib/diff_to_html.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/diff_to_html.rb b/lib/diff_to_html.rb index 9cc272d..2df93bd 100644 --- a/lib/diff_to_html.rb +++ b/lib/diff_to_html.rb @@ -144,7 +144,7 @@ def operation_description "

#{header}

\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? @@ -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