From 048711509b69375a8bc336fcbad5305eef955a5b Mon Sep 17 00:00:00 2001 From: gorhill Date: Sun, 6 Jul 2014 22:24:11 -0400 Subject: [PATCH] no need for if there --- js/ublock.js | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/js/ublock.js b/js/ublock.js index cab1a6233..940c6c58f 100644 --- a/js/ublock.js +++ b/js/ublock.js @@ -57,16 +57,14 @@ } // Remove from exception list - if ( newState ) { - var hostnames = this.URI.allHostnamesFromHostname(hostname); - while ( hostname = hostnames.shift() ) { - if ( netExceptionList[hostname] !== undefined ) { - delete netExceptionList[hostname]; - } + var hostnames = this.URI.allHostnamesFromHostname(hostname); + while ( hostname = hostnames.shift() ) { + if ( netExceptionList[hostname] !== undefined ) { + delete netExceptionList[hostname]; } - this.saveExceptionList(); - return false; } + this.saveExceptionList(); + return false; }; /******************************************************************************/