mirror of
https://github.com/sern-handler/cli
synced 2026-06-26 17:52:19 +00:00
chore(init): update naming of variable
This commit is contained in:
@@ -69,9 +69,9 @@ export async function init(flags) {
|
||||
|
||||
const requiredData = flags.sync !== undefined ? 3 : 4;
|
||||
const receivedData = Object.keys(data).length;
|
||||
const hasRequiredData = receivedData < requiredData;
|
||||
const incompleteDataCondition = receivedData < requiredData;
|
||||
|
||||
if (hasRequiredData) process.exit(1);
|
||||
if (incompleteDataCondition) process.exit(1);
|
||||
|
||||
if (!flags.sync) await cloneRepo(data.lang, data.name);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user