From 47920ee1730a8ea8ce056a3f1c1bb5de6aa70da7 Mon Sep 17 00:00:00 2001 From: Adan Toscano Date: Wed, 11 Oct 2023 11:02:08 +0100 Subject: [PATCH] fix: unhandled promise --- src/services/utils.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/services/utils.js b/src/services/utils.js index 986b138..3c6b297 100644 --- a/src/services/utils.js +++ b/src/services/utils.js @@ -23,7 +23,7 @@ export const TEMP_FOLDER_NAME = ".api-mock-runner"; * @returns {Promise} */ export async function addToGitignore(textToAppend) { - if (!checkStringInFile(textToAppend, `${process.cwd()}/.gitignore`)) { + if (await !checkStringInFile(textToAppend, `${process.cwd()}/.gitignore`)) { fs.appendFile(`${process.cwd()}/.gitignore`, `\n${textToAppend}`, (err) => { if (err) { console.error(err);