diff options
author | Samrith Shankar <samrith-s@users.noreply.github.com> | 2020-03-20 14:38:34 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-03-20 09:38:34 -0400 |
commit | 798904b0f2ed0c7284b67bba2f125f406b5850de (patch) | |
tree | 5aba8d35aa8984aa778c894258bcaed56f1ce17c /std/testing/bench.ts | |
parent | 35f6e2e45ddb96524a6bdf54b0a6155caa88d5e0 (diff) |
Add require-await lint rule (#4401)
Diffstat (limited to 'std/testing/bench.ts')
-rw-r--r-- | std/testing/bench.ts | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/std/testing/bench.ts b/std/testing/bench.ts index 5cec3ea39..1c4b01c0b 100644 --- a/std/testing/bench.ts +++ b/std/testing/bench.ts @@ -169,11 +169,12 @@ export async function runBenchmarks({ } /** Runs specified benchmarks if the enclosing script is main. */ -export async function runIfMain( +export function runIfMain( meta: ImportMeta, opts: BenchmarkRunOptions = {} ): Promise<void> { if (meta.main) { return runBenchmarks(opts); } + return Promise.resolve(undefined); } |