From d5548e26df8b1b2c33409831b8648cf35ce2b7cd Mon Sep 17 00:00:00 2001 From: Matt Huggins Date: Fri, 6 Apr 2018 22:16:55 -0500 Subject: [PATCH] Replaced => with function --- lib/storage.js | 2 +- lib/utils.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/storage.js b/lib/storage.js index ee7a18d..c2d46d5 100644 --- a/lib/storage.js +++ b/lib/storage.js @@ -332,7 +332,7 @@ exports.has = function(key, options, callback) { dataPath: options.dataPath })), function(filename, done) { - fs.stat(filename, (error) => { + fs.stat(filename, function(error) { if (error) { if (error.code === 'ENOENT') { return done(null, false); diff --git a/lib/utils.js b/lib/utils.js index e55d49f..649dc6b 100644 --- a/lib/utils.js +++ b/lib/utils.js @@ -39,7 +39,7 @@ const app = electron.app || electron.remote.app; * @example * const defaultDataPath = utils.getDefaultDataPath() */ -exports.getDefaultDataPath = () => { +exports.getDefaultDataPath = function() { return path.join(app.getPath('userData'), 'storage'); };