Skip to content

Commit 1049d64

Browse files
committed
Fix no-extra-boolean-cast related problems
1 parent 6337d5a commit 1049d64

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
@@ -116,7 +116,7 @@ export function buildMiddleware<
116116
res = internalProbeResult
117117
}
118118

119-
if (!!mwApi.getState()[reducerPath]) {
119+
if (mwApi.getState()[reducerPath]) {
120120
// Only run these checks if the middleware is registered okay
121121

122122
// 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
@@ -130,7 +130,7 @@ export const buildPollingHandler: InternalHandlerBuilder = ({
130130
let skipPollingIfUnfocused: boolean | undefined = false
131131
let lowestPollingInterval = Number.POSITIVE_INFINITY
132132
for (const key in subscribers) {
133-
if (!!subscribers[key].pollingInterval) {
133+
if (subscribers[key].pollingInterval) {
134134
lowestPollingInterval = Math.min(
135135
subscribers[key].pollingInterval!,
136136
lowestPollingInterval,

0 commit comments

Comments
 (0)