Skip to content

Commit a662833

Browse files
committed
fix: resolve conflict
1 parent c4fcb6f commit a662833

File tree

1 file changed

+0
-10
lines changed

1 file changed

+0
-10
lines changed

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

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -11,16 +11,6 @@ import type {
1111

1212
export type ReferenceCacheCollection = never
1313

14-
function isObjectEmpty(obj: Record<any, any>) {
15-
// Apparently a for..in loop is faster than `Object.keys()` here:
16-
// https://stackoverflow.com/a/59787784/62937
17-
for (const k in obj) {
18-
// If there is at least one key, it's not empty
19-
return false
20-
}
21-
return true
22-
}
23-
2414
/**
2515
* @example
2616
* ```ts

0 commit comments

Comments
 (0)