fix: lint error

This commit is contained in:
vince
2024-07-14 23:30:33 +08:00
parent a5edb67b12
commit b12266bb90
4 changed files with 31 additions and 27 deletions

View File

@@ -87,7 +87,7 @@ async function runPublint(files: string[], { check }: PubLintCommandOptions) {
const publintResult: Result =
cache?.[file]?.hash === hash
? cache?.[file]?.result ?? []
? (cache?.[file]?.result ?? [])
: await publint({
level: 'suggestion',
pkgDir: dirname(file),