From ca1296c61e20ea990953d9d195905b87fca0b582 Mon Sep 17 00:00:00 2001 From: LocalNewsTV <62873746+LocalNewsTV@users.noreply.github.com> Date: Thu, 14 Nov 2024 13:30:08 -0800 Subject: [PATCH] Remove switch statement, unused variable --- app/src/state/reducers/batch.ts | 5 ----- app/src/state/sagas/batch.ts | 2 -- 2 files changed, 7 deletions(-) diff --git a/app/src/state/reducers/batch.ts b/app/src/state/reducers/batch.ts index b462aeed5..30be991c4 100644 --- a/app/src/state/reducers/batch.ts +++ b/app/src/state/reducers/batch.ts @@ -138,11 +138,6 @@ function createBatchReducer() { data: action.payload.data } }; - } else { - switch (action.type) { - default: - break; - } } }); }; diff --git a/app/src/state/sagas/batch.ts b/app/src/state/sagas/batch.ts index 11a8039ab..fa4d55507 100644 --- a/app/src/state/sagas/batch.ts +++ b/app/src/state/sagas/batch.ts @@ -76,8 +76,6 @@ function* deleteBatch(action: PayloadAction) { body: JSON.stringify({ id }) }); - const data = yield res.json(); - if (!res.ok) { yield put(BatchActions.deleteError()); return;