Skip to content

Commit

Permalink
fix: unhandled promise
Browse files Browse the repository at this point in the history
  • Loading branch information
adantoscano committed Oct 11, 2023
1 parent 2bf2841 commit 47920ee
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/services/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ export const TEMP_FOLDER_NAME = ".api-mock-runner";
* @returns {Promise<void>}
*/
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);
Expand Down

0 comments on commit 47920ee

Please sign in to comment.