Skip to content

Commit 7238c79

Browse files
committed
Address ESLint no-empty
1 parent 1a3ce1a commit 7238c79

File tree

2 files changed

+1
-3
lines changed

2 files changed

+1
-3
lines changed

ui/frontend/eslint.config.mjs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,6 @@ export default tseslint.config(
6060
...reactHooksPlugin.configs.recommended.rules,
6161

6262
// Disabled to upgrade to eslint 9
63-
'no-empty': 'off',
6463
'no-useless-escape': 'off',
6564
'no-fallthrough': 'off',
6665
'@typescript-eslint/no-empty-object-type': 'off',

ui/frontend/reducers/output/execute.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -172,8 +172,7 @@ const slice = createSlice({
172172
state.requestsInProgress -= 1;
173173
})
174174
.addCase(performExecute.rejected, (state, action) => {
175-
if (action.payload) {
176-
} else {
175+
if (!action.payload) {
177176
state.error = action.error.message;
178177
}
179178
state.requestsInProgress -= 1;

0 commit comments

Comments
 (0)