fix: remove unnecessary condition

This commit is contained in:
Justineo
2025-10-12 00:19:32 +08:00
committed by GU Yiling
parent 20a70c8a6d
commit 5262c3848e
2 changed files with 2 additions and 1 deletions

View File

@ -121,7 +121,7 @@ export function useSlotOption(slots: Slots, onSlotsChange: () => void) {
// Traverse to the parent of the leaf, cloning or creating along the way
let cur: Record<string, unknown> | undefined = root;
for (let i = 0; i < path.length - 1; i++) {
cur = cur && ensureChild(cur, path[i]);
cur = ensureChild(cur, path[i]);
if (!cur) {
return; // Blocked by a primitive — skip this key
}

View File

@ -13,6 +13,7 @@ export default mergeConfig(
provider: "v8",
reporter: ["text", "lcov", "html"],
include: ["src/**/*.{ts,tsx,js,jsx,vue}"],
exclude: ["src/types.ts"],
reportsDirectory: "coverage/browser",
},
browser: {