Skip to content

Commit

Permalink
fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
huozhi committed Feb 4, 2022
1 parent fdef94e commit 6b994e0
Showing 1 changed file with 1 addition and 3 deletions.
Expand Up @@ -96,9 +96,7 @@ export default class FunctionsManifestPlugin {
if (exportName === 'config') {
const varDecl = declaration.declarations[0]
const { properties } = varDecl.init
const prop = properties.find(
(prop: any) => prop.key.name === 'runtime'
)
const prop = properties.find((p: any) => p.key.name === 'runtime')
if (!prop) return
const runtime = prop.value.value
if (!['nodejs', 'edge'].includes(runtime))
Expand Down

0 comments on commit 6b994e0

Please sign in to comment.