Newer versions of mkdirp return promise by default
Summary: Newer versions of mkdirp return promise by default, no need to promisify it. Reviewed By: passy Differential Revision: D19815799 fbshipit-source-id: 9e339021f2be8a82cd23c87d2b3248fea591779c
This commit is contained in:
committed by
Facebook Github Bot
parent
018b074ec3
commit
b75c52bd49
@@ -60,7 +60,7 @@ const checkIsCycle = async () => {
|
||||
}
|
||||
|
||||
const delta = rightNow - backThen;
|
||||
await promisify(mkdirp)(dir);
|
||||
await mkdirp(dir);
|
||||
await promisify(fs.writeFile)(filePath, rightNow);
|
||||
|
||||
// If the last startup was less than 5s ago, something's not okay.
|
||||
|
||||
Reference in New Issue
Block a user