diff --git a/lib/plugins/analysisstorer/index.js b/lib/plugins/analysisstorer/index.js index da420d0a1..0d29bc80c 100644 --- a/lib/plugins/analysisstorer/index.js +++ b/lib/plugins/analysisstorer/index.js @@ -1,10 +1,5 @@ 'use strict'; -const Promise = require('bluebird'); -const fs = require('fs'); - -Promise.promisifyAll(fs); - function shouldIgnoreMessage(message) { return ( [ diff --git a/lib/plugins/harstorer/index.js b/lib/plugins/harstorer/index.js index 5cabe7340..394af9344 100644 --- a/lib/plugins/harstorer/index.js +++ b/lib/plugins/harstorer/index.js @@ -1,10 +1,5 @@ 'use strict'; -const Promise = require('bluebird'); -const fs = require('fs'); - -Promise.promisifyAll(fs); - module.exports = { open(context, options) { this.storageManager = context.storageManager; diff --git a/lib/plugins/html/htmlBuilder.js b/lib/plugins/html/htmlBuilder.js index d6dd96833..4ac560b8c 100644 --- a/lib/plugins/html/htmlBuilder.js +++ b/lib/plugins/html/htmlBuilder.js @@ -1,7 +1,6 @@ 'use strict'; -const fs = require('fs'), - helpers = require('../../support/helpers'), +const helpers = require('../../support/helpers'), Promise = require('bluebird'), path = require('path'), merge = require('lodash.merge'), @@ -16,8 +15,6 @@ const fs = require('fs'), const summaryBoxesSetup = require('./setup/summaryBoxes'), detailedSetup = require('./setup/detailed'); -Promise.promisifyAll(fs); - const TIME_FORMAT = 'YYYY-MM-DD HH:mm:ss'; class HTMLBuilder { diff --git a/lib/plugins/webpagetest/analyzer.js b/lib/plugins/webpagetest/analyzer.js index a7bce09be..451dcf4a6 100644 --- a/lib/plugins/webpagetest/analyzer.js +++ b/lib/plugins/webpagetest/analyzer.js @@ -1,6 +1,5 @@ 'use strict'; -const fs = require('fs'); const Promise = require('bluebird'); const log = require('intel').getLogger('sitespeedio.plugin.webpagetest'); const clone = require('lodash.clonedeep'); @@ -8,7 +7,6 @@ const get = require('lodash.get'); const WebPageTest = require('webpagetest'); const WPTAPIError = require('webpagetest/lib/helper').WPTAPIError; -Promise.promisifyAll(fs); Promise.promisifyAll(WebPageTest.prototype); module.exports = { diff --git a/lib/support/dataCollector.js b/lib/support/dataCollector.js index a8e7b1d15..0f4c9568c 100644 --- a/lib/support/dataCollector.js +++ b/lib/support/dataCollector.js @@ -1,14 +1,10 @@ 'use strict'; -const fs = require('fs'), - Promise = require('bluebird'), - merge = require('lodash.merge'), +const merge = require('lodash.merge'), get = require('lodash.get'), reduce = require('lodash.reduce'), set = require('lodash.set'); -Promise.promisifyAll(fs); - class DataCollector { constructor(context) { this.resultUrls = context.resultUrls;