From ccc9c1874d3a9aa4625871d6b488476c8bb4886f Mon Sep 17 00:00:00 2001 From: Robert Jackson Date: Tue, 29 Jan 2019 12:47:52 -0500 Subject: [PATCH] Prevent error when calling fs.unlink without a callback --- bin/ember-modules-codemod.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/ember-modules-codemod.js b/bin/ember-modules-codemod.js index d31c1c4..da608e6 100755 --- a/bin/ember-modules-codemod.js +++ b/bin/ember-modules-codemod.js @@ -93,7 +93,7 @@ function buildReport() { }); // Delete the temporary log file - fs.unlink(log); + fs.unlinkSync(log); }); // If there's anything to report, convert the JSON tuple into human-formatted