From b29c44ff99fb22319ebf61b962ba4969ca8e2c6f Mon Sep 17 00:00:00 2001 From: Francois Marier Date: Fri, 16 May 2014 16:13:16 +1200 Subject: [PATCH] Check for unused variables Dirty hack to silence a warning that is already fixed in #18. --- .jshintrc | 2 +- ip_record.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.jshintrc b/.jshintrc index 5a32da2..920d889 100644 --- a/.jshintrc +++ b/.jshintrc @@ -15,7 +15,7 @@ "nonew": true, "quotmark": "single", "undef": true, - "unused": false, + "unused": true, "strict": false, "node": true diff --git a/ip_record.js b/ip_record.js index 52fdedc..d2f1627 100644 --- a/ip_record.js +++ b/ip_record.js @@ -17,7 +17,7 @@ module.exports = function (BLOCK_INTERVAL_MS, INVALID_AGENT_INTERVAL_MS, now) { } function isBadAgent(agent) { - return false // TODO + return false && agent // TODO } IpRecord.prototype.isBlocked = function () {