mirror of
https://github.com/google-gemini/gemini-cli.git
synced 2026-04-25 12:34:38 -07:00
Disallow redundant typecasts. (#15030)
This commit is contained in:
committed by
GitHub
parent
fcc3b2b5ec
commit
942bcfc61e
@@ -62,7 +62,7 @@ export const uninstallCommand: CommandModule = {
|
||||
array: true,
|
||||
})
|
||||
.check((argv) => {
|
||||
if (!argv.names || (argv.names as string[]).length === 0) {
|
||||
if (!argv.names || argv.names.length === 0) {
|
||||
throw new Error(
|
||||
'Please include at least one extension name to uninstall as a positional argument.',
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user