Skip to content

Commit

Permalink
Merge d1c4b48 into 645e190
Browse files Browse the repository at this point in the history
  • Loading branch information
aminya committed Oct 15, 2020
2 parents 645e190 + d1c4b48 commit a57e53f
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions lib/index.js
Expand Up @@ -2,17 +2,17 @@
const checkWindows = require("./checkWindows");
const {resolve: resolvePath} = require("path");
const whichLib = require("./whichLib");
const { promisify } = require("util")



const get = (path, callback) =>
const _get = (path, callback) =>
{
if (checkWindows.async(callback))
{
return whichLib.run(() => whichLib.current().get( resolvePath(path), callback ));
}
};

const get = promisify(_get)


const getSync = path =>
Expand All @@ -25,15 +25,15 @@ const getSync = path =>



const set = (path, attrs, callback) =>
const _set = (path, attrs, callback) =>
{
if (checkWindows.async(callback))
{
return whichLib.run(() => whichLib.current().set( resolvePath(path), attrs, callback ));
}
};


const set = promisify(_set)

const setSync = (path, attrs) =>
{
Expand Down

0 comments on commit a57e53f

Please sign in to comment.