From 5febcb537eca86826ae572a96a9d4be5975599d5 Mon Sep 17 00:00:00 2001 From: Elbert Alias Date: Sun, 27 Aug 2017 12:13:58 +1000 Subject: [PATCH] Minor fixes --- src/drivers/npm/driver.js | 2 -- src/wappalyzer.js | 8 ++++++-- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/src/drivers/npm/driver.js b/src/drivers/npm/driver.js index cc55549dd..ef7569b17 100644 --- a/src/drivers/npm/driver.js +++ b/src/drivers/npm/driver.js @@ -53,8 +53,6 @@ const driver = { }); }); - console.log('resolve ' + url); - resolve(apps); }; diff --git a/src/wappalyzer.js b/src/wappalyzer.js index dbc97610b..093f1b0bb 100644 --- a/src/wappalyzer.js +++ b/src/wappalyzer.js @@ -300,7 +300,9 @@ class Wappalyzer { * Cache detected applications */ cacheDetectedApps(apps, url) { - if (!this.driver.ping instanceof Function) return; + if ( !( this.driver.ping instanceof Function ) ) { + return; + } Object.keys(apps).forEach(appName => { var app = apps[appName]; @@ -320,7 +322,9 @@ class Wappalyzer { * Track detected applications */ trackDetectedApps(apps, url, hostname, html) { - if (!this.driver.ping instanceof Function) return; + if ( !( this.driver.ping instanceof Function ) ) { + return; + } Object.keys(apps).forEach(appName => { var app = apps[appName];