diff --git a/app/views/commits/_text_file.html.haml b/app/views/commits/_text_file.html.haml
index 1ef4a3c8a6618743951e475f26fd68ddfb463223..ed9adffd1e0abc55f4fc05fe0e1e00206e6736cf 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
-