Skip to content

Commit 3c69c31

Browse files
ci: apply automated fixes
1 parent 25b5bbd commit 3c69c31

File tree

1 file changed

+14
-4
lines changed

1 file changed

+14
-4
lines changed

packages/query-core/src/utils.ts

Lines changed: 14 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -280,9 +280,14 @@ export function replaceEqualDeep(a: unknown, b: unknown): any {
280280
}
281281

282282
// either item is not an array or object
283-
if (aItem === null || bItem === null || typeof aItem !== 'object' || typeof bItem !== 'object') {
284-
copy[i] = bItem
285-
continue
283+
if (
284+
aItem === null ||
285+
bItem === null ||
286+
typeof aItem !== 'object' ||
287+
typeof bItem !== 'object'
288+
) {
289+
copy[i] = bItem
290+
continue
286291
}
287292

288293
const v = replaceEqualDeep(aItem, bItem)
@@ -322,7 +327,12 @@ export function replaceEqualDeep(a: unknown, b: unknown): any {
322327
}
323328

324329
// either item is not an array or object
325-
if (aItem === null || bItem === null || typeof aItem !== 'object' || typeof bItem !== 'object') {
330+
if (
331+
aItem === null ||
332+
bItem === null ||
333+
typeof aItem !== 'object' ||
334+
typeof bItem !== 'object'
335+
) {
326336
copy[k] = bItem
327337
continue
328338
}

0 commit comments

Comments
 (0)