Skip to content

Commit e4f4a9f

Browse files
ci: apply automated fixes
1 parent f523bf3 commit e4f4a9f

1 file changed

Lines changed: 2 additions & 6 deletions

File tree

packages/router-core/src/utils.ts

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -219,13 +219,9 @@ export function replaceEqualDeep<T>(prev: any, _next: T): T {
219219
const array = isPlainArray(prev) && isPlainArray(next)
220220

221221
if (array || (isSimplePlainObject(prev) && isSimplePlainObject(next))) {
222-
const prevItems = array
223-
? prev
224-
: Reflect.ownKeys(prev)
222+
const prevItems = array ? prev : Reflect.ownKeys(prev)
225223
const prevSize = prevItems.length
226-
const nextItems = array
227-
? next
228-
: Reflect.ownKeys(next)
224+
const nextItems = array ? next : Reflect.ownKeys(next)
229225
const nextSize = nextItems.length
230226
const copy: any = array ? [] : {}
231227

0 commit comments

Comments
 (0)