From d24b3a694ba086c5e1ebae49dff99cf0a59b59f8 Mon Sep 17 00:00:00 2001 From: Matěj Cepl Date: Wed, 2 Mar 2011 19:40:28 +0100 Subject: Remove unnecessary logging. --- data/lib/logging-front.js | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'data/lib/logging-front.js') diff --git a/data/lib/logging-front.js b/data/lib/logging-front.js index 4b0a3f9..b3a175d 100644 --- a/data/lib/logging-front.js +++ b/data/lib/logging-front.js @@ -14,7 +14,7 @@ function addLogRecord() { rec.title = document.title; var comment = window.prompt( "Enter comments for this comment"); - if (comment) { + if (comment !== null) { comment = comment.trim(); if (comment.length > 0) { comment = comment.trim(); @@ -25,10 +25,7 @@ function addLogRecord() { rec.key = dateStr + "+" + urlStr + "+" + bugNo; postMessage(new Message("AddLogRecord", rec)); - } else { - console.log("Empty string!"); } - console.log("addLogRecord : rec = " + rec.toSource()); return rec; } return null; -- cgit