mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-18 21:40:49 +02:00
Fix Everything
This commit is contained in:
@@ -16,11 +16,8 @@ module.exports = class ClearSettingCommand extends Command {
|
||||
prompt: 'What setting do you want to clear?',
|
||||
type: 'string',
|
||||
validate: (setting) => {
|
||||
if (settings.includes(setting)) {
|
||||
return true;
|
||||
} else {
|
||||
return `Please enter one of the following: ${settings.join(', ')}.`;
|
||||
}
|
||||
if (settings.includes(setting)) return true;
|
||||
else return `Please enter one of the following: ${settings.join(', ')}.`;
|
||||
}
|
||||
}
|
||||
]
|
||||
|
||||
Reference in New Issue
Block a user