From 972cef0a351c572ae3ee994a9b584b88417c4fb6 Mon Sep 17 00:00:00 2001 From: ayush-coder-hai Date: Tue, 26 Sep 2023 22:56:15 +0530 Subject: [PATCH] remove the lint error --- src/commands/new/file.ts | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) 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}...`); - } } - } }