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:
Pritesh Nandgaonkar
2020-02-10 12:01:38 -08:00
committed by Facebook Github Bot
parent 018b074ec3
commit b75c52bd49

View File

@@ -60,7 +60,7 @@ const checkIsCycle = async () => {
} }
const delta = rightNow - backThen; const delta = rightNow - backThen;
await promisify(mkdirp)(dir); await mkdirp(dir);
await promisify(fs.writeFile)(filePath, rightNow); await promisify(fs.writeFile)(filePath, rightNow);
// If the last startup was less than 5s ago, something's not okay. // If the last startup was less than 5s ago, something's not okay.