Skip to content

Commit

Permalink
fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
fwuensche committed Sep 22, 2024
1 parent 91cff2d commit 0dd0516
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/occurrences.ts
Original file line number Diff line number Diff line change
Expand Up @@ -152,13 +152,13 @@ const runPlugins = async (plugins: Plugins = {}, quiet: boolean): Promise<Occurr
if (!plugin) panic(`Unsupported '${name}' plugin\nExpected one of: ${Object.keys(PLUGINS).join(', ')}`)
if (!quiet) spinnies.add(`plugin_${name}`, { text: `${name}...`, indent: 4 })
// @ts-expect-error TODO: properly type plugin options
const result = executeWithTiming(async () => await plugin.run(options), `Plugin '${name}'`)
const result = executeWithTiming(async () => plugin.run(options), `Plugin '${name}'`)
if (!quiet) spinnies.succeed(`plugin_${name}`, { text: name })
return result
})
)

if (!quiet) promise.then(() => spinnies.succeed('plugins', { text: 'Running plugin' }))
if (!quiet) await promise.then(() => spinnies.succeed('plugins', { text: 'Running plugin' }))

return promise
}
Expand Down

0 comments on commit 0dd0516

Please sign in to comment.