Skip to content

Commit

Permalink
Replaced => with function
Browse files Browse the repository at this point in the history
  • Loading branch information
mhuggins committed Apr 7, 2018
1 parent a07f96e commit d5548e2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/storage.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
2 changes: 1 addition & 1 deletion lib/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -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');
};

Expand Down

0 comments on commit d5548e2

Please sign in to comment.