From c7180d197a88b670da694cb9502441f2edab51f0 Mon Sep 17 00:00:00 2001 From: Phil Crosby Date: Tue, 7 May 2013 09:40:26 -0700 Subject: Tweak to make if statement positively formed --- background_scripts/main.coffee | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'background_scripts/main.coffee') diff --git a/background_scripts/main.coffee b/background_scripts/main.coffee index 54bf2882..71f963b2 100644 --- a/background_scripts/main.coffee +++ b/background_scripts/main.coffee @@ -84,7 +84,7 @@ root.addExcludedUrl = (url) -> return unless url = url.trim() excludedUrls = Settings.get("excludedUrls") - return unless excludedUrls.indexOf(url) < 0 + return if excludedUrls.indexOf(url) >= 0 excludedUrls += "\n" + url Settings.set("excludedUrls", excludedUrls) -- cgit v1.2.3