Skip to content

Commit aa0b1fe

Browse files
dreyfus92github-actions[bot]
authored andcommitted
[ci] format
1 parent f2c2b89 commit aa0b1fe

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

packages/prompts/src/autocomplete.ts

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -205,16 +205,14 @@ export const autocompleteMultiselect = <Value>(opts: AutocompleteMultiSelectOpti
205205
option.hint && focusedValue !== undefined && option.value === focusedValue
206206
? color.dim(` (${option.hint})`)
207207
: '';
208-
const checkbox = isSelected
209-
? color.green(S_CHECKBOX_SELECTED)
210-
: color.dim(S_CHECKBOX_INACTIVE);
208+
const checkbox = isSelected ? color.green(S_CHECKBOX_SELECTED) : color.dim(S_CHECKBOX_INACTIVE);
211209

212210
if (active) {
213211
return `${checkbox} ${label}${hint}`;
214212
}
215213
return `${checkbox} ${color.dim(label)}`;
216214
};
217-
215+
218216
// Create text prompt which we'll use as foundation
219217
const prompt = new AutocompletePrompt<Option<Value>>({
220218
options: opts.options,

0 commit comments

Comments
 (0)