diff --git a/src/commands/init.js b/src/commands/init.js index 7e7107e..821c653 100644 --- a/src/commands/init.js +++ b/src/commands/init.js @@ -23,7 +23,6 @@ const { prompt } = prompts; * @param {{ y: string; sync: string; }} flags */ export async function init(flags) { - let data; let git_init; let pm; diff --git a/src/prompts/plugin.js b/src/prompts/plugin.js index dcf5186..43fb7f8 100644 --- a/src/prompts/plugin.js +++ b/src/prompts/plugin.js @@ -2,13 +2,11 @@ import { fetch } from 'undici'; import { getLang } from '../utilities/getLang.js'; function upperCase(string) { - if(string === null) { + if (string === null) { console.error('Lang property not found!'); process.exit(0); } - return string === 'typescript' - ? 'TypeScript' - : 'JavaScript'; + return string === 'typescript' ? 'TypeScript' : 'JavaScript'; } async function gimmechoices() {