From bced52505f32d6cca4f944bb610a8a26767908a8 Mon Sep 17 00:00:00 2001 From: Kitson Kelly Date: Sun, 29 Mar 2020 04:03:49 +1100 Subject: Update to Prettier 2 and use ES Private Fields (#4498) --- cli/js/ops/fs/open.ts | 2 +- cli/js/ops/fs/stat.ts | 8 ++++---- cli/js/ops/fs/utime.ts | 4 ++-- 3 files changed, 7 insertions(+), 7 deletions(-) (limited to 'cli/js/ops/fs') diff --git a/cli/js/ops/fs/open.ts b/cli/js/ops/fs/open.ts index 87696935f..b587f491d 100644 --- a/cli/js/ops/fs/open.ts +++ b/cli/js/ops/fs/open.ts @@ -36,6 +36,6 @@ export function open( path, options, openMode, - mode + mode, }); } diff --git a/cli/js/ops/fs/stat.ts b/cli/js/ops/fs/stat.ts index 20ca3e6b1..f455484c1 100644 --- a/cli/js/ops/fs/stat.ts +++ b/cli/js/ops/fs/stat.ts @@ -25,7 +25,7 @@ export interface StatResponse { export async function lstat(path: string): Promise { const res = (await sendAsync("op_stat", { path, - lstat: true + lstat: true, })) as StatResponse; return new FileInfoImpl(res); } @@ -33,7 +33,7 @@ export async function lstat(path: string): Promise { export function lstatSync(path: string): FileInfo { const res = sendSync("op_stat", { path, - lstat: true + lstat: true, }) as StatResponse; return new FileInfoImpl(res); } @@ -41,7 +41,7 @@ export function lstatSync(path: string): FileInfo { export async function stat(path: string): Promise { const res = (await sendAsync("op_stat", { path, - lstat: false + lstat: false, })) as StatResponse; return new FileInfoImpl(res); } @@ -49,7 +49,7 @@ export async function stat(path: string): Promise { export function statSync(path: string): FileInfo { const res = sendSync("op_stat", { path, - lstat: false + lstat: false, }) as StatResponse; return new FileInfoImpl(res); } diff --git a/cli/js/ops/fs/utime.ts b/cli/js/ops/fs/utime.ts index 13cac8cb6..cd195531c 100644 --- a/cli/js/ops/fs/utime.ts +++ b/cli/js/ops/fs/utime.ts @@ -14,7 +14,7 @@ export function utimeSync( path, // TODO(ry) split atime, mtime into [seconds, nanoseconds] tuple atime: toSecondsFromEpoch(atime), - mtime: toSecondsFromEpoch(mtime) + mtime: toSecondsFromEpoch(mtime), }); } @@ -27,6 +27,6 @@ export async function utime( path, // TODO(ry) split atime, mtime into [seconds, nanoseconds] tuple atime: toSecondsFromEpoch(atime), - mtime: toSecondsFromEpoch(mtime) + mtime: toSecondsFromEpoch(mtime), }); } -- cgit v1.2.3