diff options
Diffstat (limited to 'std/fs/read_file_str.ts')
-rw-r--r-- | std/fs/read_file_str.ts | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/std/fs/read_file_str.ts b/std/fs/read_file_str.ts index 7420183e2..9aa50f15a 100644 --- a/std/fs/read_file_str.ts +++ b/std/fs/read_file_str.ts @@ -12,7 +12,7 @@ export interface ReadOptions { */ export function readFileStrSync( filename: string, - opts: ReadOptions = {} + opts: ReadOptions = {}, ): string { const decoder = new TextDecoder(opts.encoding); return decoder.decode(Deno.readFileSync(filename)); @@ -26,7 +26,7 @@ export function readFileStrSync( */ export async function readFileStr( filename: string, - opts: ReadOptions = {} + opts: ReadOptions = {}, ): Promise<string> { const decoder = new TextDecoder(opts.encoding); return decoder.decode(await Deno.readFile(filename)); |