From c76c5d79d7bc587cd901d87279c7b1f557465c8c Mon Sep 17 00:00:00 2001 From: Bruno Bottazzini Date: Wed, 11 Nov 2015 10:57:49 -0200 Subject: [PATCH] Remove ahead since the licenses from fbp will be removed Signed-off-by: Bruno Bottazzini --- client/js/controllers/editor.js | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/client/js/controllers/editor.js b/client/js/controllers/editor.js index 3179637..eced3f1 100644 --- a/client/js/controllers/editor.js +++ b/client/js/controllers/editor.js @@ -154,12 +154,7 @@ for (var i = 0; i < editor.session.getLength(); i++) { l = editor.session.getLine(i); if (l.charAt(0) !== "#") { - ahead = editor.session.getLine(i + 1); - if (ahead.charAt(0) !== "#") { - break; - } else { - count++; - } + break; } else { count++; }