Skip to content

Commit 00ae851

Browse files
committed
Fix no-extra-boolean-cast related problems
1 parent 02d8936 commit 00ae851

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

packages/toolkit/src/query/core/buildMiddleware/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ export function buildMiddleware<
119119
res = internalProbeResult
120120
}
121121

122-
if (!!mwApi.getState()[reducerPath]) {
122+
if (mwApi.getState()[reducerPath]) {
123123
// Only run these checks if the middleware is registered okay
124124

125125
// This looks for actions that aren't specific to the API slice

packages/toolkit/src/query/core/buildMiddleware/polling.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@ export const buildPollingHandler: InternalHandlerBuilder = ({
148148
let skipPollingIfUnfocused: boolean | undefined = false
149149
let lowestPollingInterval = Number.POSITIVE_INFINITY
150150
for (const key in subscribers) {
151-
if (!!subscribers[key].pollingInterval) {
151+
if (subscribers[key].pollingInterval) {
152152
lowestPollingInterval = Math.min(
153153
subscribers[key].pollingInterval!,
154154
lowestPollingInterval,

0 commit comments

Comments
 (0)