From 3f70316c5f264948d74eb9080079be4c78f5aaa9 Mon Sep 17 00:00:00 2001 From: Nihad Abbasov Date: Wed, 9 Nov 2011 17:53:15 +0400 Subject: [PATCH] fix elsif statement --- app/views/commits/_text_file.html.haml | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/app/views/commits/_text_file.html.haml b/app/views/commits/_text_file.html.haml index 1ef4a3c8..ed9adffd 100644 --- a/app/views/commits/_text_file.html.haml +++ b/app/views/commits/_text_file.html.haml @@ -13,10 +13,8 @@ = diff_line(line, line_new, line_old) - if line[0] == "+" - line_new += 1 - - elsif - - line[0] == "-" + - elsif line[0] == "-" - line_old += 1 - else - line_new += 1 - line_old += 1 -