chore: lint

This commit is contained in:
Bereket Engida
2024-09-27 15:55:00 +03:00
parent 2a576c8ff3
commit 461526d89d
23 changed files with 1003 additions and 19092 deletions

View File

@@ -95,7 +95,6 @@ export const reducer = (state: State, action: Action): State => {
if (toastId) {
addToRemoveQueue(toastId);
} else {
// biome-ignore lint/complexity/noForEach: <explanation>
state.toasts.forEach((toast) => {
addToRemoveQueue(toast.id);
});
@@ -133,7 +132,7 @@ let memoryState: State = { toasts: [] };
function dispatch(action: Action) {
memoryState = reducer(memoryState, action);
// biome-ignore lint/complexity/noForEach: <explanation>
listeners.forEach((listener) => {
listener(memoryState);
});