mirror of
https://github.com/nuxt/nuxt.git
synced 2025-01-22 11:22:43 +00:00
chore: remove unneeded assertion
This commit is contained in:
parent
2fd904d623
commit
4dc6b3993f
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user