diff options
| author | Vincent LE GOFF <g_n_s@hotmail.fr> | 2019-04-14 16:53:19 +0200 |
|---|---|---|
| committer | Ryan Dahl <ry@tinyclouds.org> | 2019-04-14 10:53:19 -0400 |
| commit | d2d5b6ac8e25bc2046b1960b9a1d22e219299cb9 (patch) | |
| tree | 40f4d34f989fc391ec2b6dbd287b0a0ee486d936 /prettier | |
| parent | fcb8e6762618965123200fe945ebc2f69e6b3cdd (diff) | |
Fix eslint warnings and small clean ups (denoland/deno_std#339)
Original: https://github.com/denoland/deno_std/commit/95ab4e2a3c8ac5fd7a1175567848ba7c2161b9e3
Diffstat (limited to 'prettier')
| -rw-r--r-- | prettier/main_test.ts | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/prettier/main_test.ts b/prettier/main_test.ts index 10ad79e36..3d5d54d66 100644 --- a/prettier/main_test.ts +++ b/prettier/main_test.ts @@ -107,7 +107,8 @@ test(async function testPrettierOptions() { const file2 = join(testdata, "opts", "2.ts"); const file3 = join(testdata, "opts", "3.md"); - const getSourceCode = async f => decoder.decode(await Deno.readFile(f)); + const getSourceCode = async (f: string): Promise<string> => + decoder.decode(await Deno.readFile(f)); await run([...cmd, "--no-semi", file0]); assertEquals( |
