From 57ca59fbdc8f81ae8cc7968b9f0bc14b8ec74e92 Mon Sep 17 00:00:00 2001 From: axetroy Date: Mon, 15 Apr 2019 00:44:37 +0800 Subject: [PATCH] fix eslint --- fs/write_file_str.ts | 2 ++ fs/write_file_str_test.ts | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/fs/write_file_str.ts b/fs/write_file_str.ts index 3cd55346b043..a4a4beb5b162 100644 --- a/fs/write_file_str.ts +++ b/fs/write_file_str.ts @@ -5,6 +5,7 @@ * * @param filename File to write * @param content The content write to file + * @returns void */ export function writeFileStrSync(filename: string, content: string): void { const encoder = new TextEncoder(); @@ -16,6 +17,7 @@ export function writeFileStrSync(filename: string, content: string): void { * * @param filename File to write * @param content The content write to file + * @returns Promise */ export async function writeFileStr( filename: string, diff --git a/fs/write_file_str_test.ts b/fs/write_file_str_test.ts index 534dba2e2e1a..4039b26f6c7f 100644 --- a/fs/write_file_str_test.ts +++ b/fs/write_file_str_test.ts @@ -1,5 +1,5 @@ import { test } from "../testing/mod.ts"; -import { assert, assertEquals } from "../testing/asserts.ts"; +import { assertEquals } from "../testing/asserts.ts"; import { writeFileStr, writeFileStrSync } from "./write_file_str.ts"; import * as path from "./path/mod.ts";