chore: remove unnecessary optional check (#5958)

This commit is contained in:
Jinesh Patel 2022-05-23 05:59:15 +05:30 committed by GitHub
parent b5462822d6
commit 0cd21ba77c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -66,7 +66,7 @@ export function rewriteDefault(
`import { ${input.slice( `import { ${input.slice(
specifier.local.start!, specifier.local.start!,
specifier.local.end! specifier.local.end!
)} } from '${node.source?.value}'\n` )} } from '${node.source.value}'\n`
) )
s.overwrite(specifier.start!, end, ``) s.overwrite(specifier.start!, end, ``)
s.append(`\nconst ${as} = ${specifier.local.name}`) s.append(`\nconst ${as} = ${specifier.local.name}`)