Skip to content

Commit dff6fe0

Browse files
committed
remove ts-ignore from createStateOperator
1 parent acaa6ad commit dff6fe0

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

packages/toolkit/src/entities/state_adapter.ts

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -50,11 +50,8 @@ export function createStateOperator<V, R>(
5050

5151
// since it's a draft, we'll just return it
5252
return state
53-
} else {
54-
// @ts-ignore createNextState() produces an Immutable<Draft<S>> rather
55-
// than an Immutable<S>, and TypeScript cannot find out how to reconcile
56-
// these two types.
57-
return createNextState(state, runMutator)
5853
}
54+
55+
return createNextState(state, runMutator)
5956
}
6057
}

0 commit comments

Comments
 (0)