mirror of
https://github.com/Kaelio/ktx.git
synced 2026-06-10 08:05:14 +02:00
fix(cli): drop unused export from tree-picker toggleSelectAllVisible
Knip flagged the export as unused; the function is only consumed by the internal reducer via the 'toggle-select-all-visible' command, so demote it to a module-local helper to keep CI's dead-code check green.
This commit is contained in:
parent
aeef02b52e
commit
ec864ab45b
1 changed files with 1 additions and 1 deletions
|
|
@ -362,7 +362,7 @@ export function selectNone(state: PickerState): PickerState {
|
|||
return cloneState(state, { checked: new Set(), transientHint: null });
|
||||
}
|
||||
|
||||
export function toggleSelectAllVisible(state: PickerState): PickerState {
|
||||
function toggleSelectAllVisible(state: PickerState): PickerState {
|
||||
const next = selectAllVisible(state);
|
||||
const unchanged =
|
||||
next.checked.size === state.checked.size && [...next.checked].every((id) => state.checked.has(id));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue