Skip to content

Commit e255c31

Browse files
committed
refactor: remove unnecessary else
1 parent ee11f43 commit e255c31

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/runtime-core/src/apiAsyncComponent.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -158,10 +158,10 @@ export function defineAsyncComponent<
158158
})
159159
: null
160160
})
161-
} else {
162-
markAsyncBoundary(instance)
163161
}
164162

163+
markAsyncBoundary(instance)
164+
165165
const loaded = ref(false)
166166
const error = ref()
167167
const delayed = ref(!!delay)

0 commit comments

Comments
 (0)