From 743d719f8d622f141057eb3358fad4db2ee42237 Mon Sep 17 00:00:00 2001 From: Randell Dawson Date: Mon, 12 Nov 2018 22:08:12 -0800 Subject: [PATCH] fix: changed to sync file save --- fileFunctions.js | 2 +- prProcessingLog.js | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/fileFunctions.js b/fileFunctions.js index e319946bc8..8fd7a98493 100644 --- a/fileFunctions.js +++ b/fileFunctions.js @@ -1,7 +1,7 @@ const fs = require('fs'); const saveToFile = (fileName, data) => { - fs.writeFile(fileName, data, err => { + fs.writeFileSync(fileName, data, err => { if (err) { return console.log(err) } }); } diff --git a/prProcessingLog.js b/prProcessingLog.js index 35e004d5b1..004d55811b 100644 --- a/prProcessingLog.js +++ b/prProcessingLog.js @@ -10,7 +10,6 @@ class PrProcessingLog { this._lastPRlogged = null; this._finish = null; this._prs = {}; - //path.resolve(__dirname, '../../../guide'); this._logfile = path.resolve(__dirname, './work-logs/open-prs-processed.json'); }