Skip to content

Commit 2f3e053

Browse files
committed
[tests] 100% coverage again
1 parent 1f95193 commit 2f3e053

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/common/array.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ export const arrayFilter = <Value>(
5656
cb: (value: Value) => boolean,
5757
): Value[] => array.filter(cb);
5858

59-
export const arrayClear = <Value>(array: Value[] = [], to?: number): Value[] =>
59+
export const arrayClear = <Value>(array: Value[], to?: number): Value[] =>
6060
array.splice(0, to);
6161

6262
export const arrayPush = <Value>(array: Value[], ...values: Value[]): number =>

src/persisters/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -258,7 +258,7 @@ export const createCustomPersister = <
258258
const getStore = (): Store => store;
259259

260260
const destroy = (): Persister<Persist> => {
261-
arrayClear(mapGet(scheduleActions, scheduleId));
261+
arrayClear(mapGet(scheduleActions, scheduleId) as Action[]);
262262
return stopAutoLoad().stopAutoSave();
263263
};
264264

0 commit comments

Comments
 (0)