Skip to content

Commit 9f09a3e

Browse files
committed
fix: sonar cloud bugs and compelexity
1 parent 9f9b025 commit 9f09a3e

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/utilities/cliUtil.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ export async function inputString(
9595
optional: boolean,
9696
message = ""
9797
) {
98-
const takeInput = await inquirer.prompt({
98+
const takeInput = await inquirer.prompt([{
9999
type: "input",
100100
name,
101101
message,
@@ -108,7 +108,8 @@ export async function inputString(
108108
return optional || stringpattern.test(value) || `${message} should have only alphanumeric values`;
109109
}
110110
},
111-
});
111+
}
112+
]);
112113

113114
return { ...takeInput };
114115
}

0 commit comments

Comments
 (0)