From a2f79952a2138b8f2a2743798bbd411542a195ab Mon Sep 17 00:00:00 2001 From: gorhill Date: Thu, 3 Dec 2015 01:16:28 -0500 Subject: [PATCH] code review --- platform/firefox/vapi-background.js | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/platform/firefox/vapi-background.js b/platform/firefox/vapi-background.js index 080605cbb..30c31f4ad 100644 --- a/platform/firefox/vapi-background.js +++ b/platform/firefox/vapi-background.js @@ -54,11 +54,7 @@ var deferUntil = function(testFn, mainFn, details) { var until = details.until || 2000; var check = function() { - if ( testFn() === true ) { - mainFn(); - return; - } - if ( now >= until ) { + if ( testFn() === true || now >= until ) { mainFn(); return; }