From 4dc6b3993f550d968b4f4f0f2841f4f263774f45 Mon Sep 17 00:00:00 2001 From: Daniel Roe Date: Fri, 29 Nov 2024 13:54:21 +0000 Subject: [PATCH] chore: remove unneeded assertion --- packages/nuxt/src/core/plugins/plugin-metadata.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/packages/nuxt/src/core/plugins/plugin-metadata.ts b/packages/nuxt/src/core/plugins/plugin-metadata.ts index ffe3626bdf..1166d6b1a4 100644 --- a/packages/nuxt/src/core/plugins/plugin-metadata.ts +++ b/packages/nuxt/src/core/plugins/plugin-metadata.ts @@ -160,8 +160,7 @@ export const RemovePluginMetadataPlugin = (nuxt: Nuxt) => createUnplugin(() => { const propertyKey = property.key.name if (propertyKey === 'order' || propertyKey === 'enforce' || propertyKey === 'name') { - const _nextNode = arg.properties[propertyIndex + 1] || node.arguments[argIndex + 1] - const nextNode = _nextNode as typeof _nextNode & { start: number, end: number } + const nextNode = arg.properties[propertyIndex + 1] || node.arguments[argIndex + 1] const nextIndex = nextNode?.start || (arg.end - 1) s.remove(property.start, nextIndex)