diff --git a/src/commands/new/file.ts b/src/commands/new/file.ts index 83c3a5fa043..fbe83632133 100644 --- a/src/commands/new/file.ts +++ b/src/commands/new/file.ts @@ -160,16 +160,13 @@ export default class NewFile extends Command { console.log(`File ${fileNameToWriteToDisk} already exists. Ignoring...`); return; } - } catch (e:any ) { - + } catch (e:any) { if (e.code === 'EACCES') { console.error('Permission denied to read the file. You do not have the necessary permissions.'); } else { await writeFile(fileNameToWriteToDisk, asyncApiFile, { encoding: 'utf8' }); console.log(`Created file ${fileNameToWriteToDisk}...`); - } } - } }