Skip to content

Commit 33a88ef

Browse files
committed
remove useless conditional
1 parent 7c63527 commit 33a88ef

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

src/test/mockRTKQuery.ts

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -239,10 +239,7 @@ export function mockMutation<E extends ApiEndpointMutation<any, any>>(
239239

240240
const newState = mutateCallback(...args);
241241
mutateCallbackResult = newState;
242-
243-
if (hookUpdateResult) {
244-
if (hookUpdateResult) hookUpdateResult(getState());
245-
}
242+
if (hookUpdateResult) hookUpdateResult(getState());
246243

247244
return getState();
248245
};

0 commit comments

Comments
 (0)