diff options
author | David Sherret <dsherret@users.noreply.github.com> | 2020-07-14 15:24:17 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-07-14 15:24:17 -0400 |
commit | cde4dbb35132848ffece59ef9cfaccff32347124 (patch) | |
tree | cc7830968c6decde704c8cfb83c9185193dc698f /std/node/_fs/_fs_common.ts | |
parent | 9eca71caa1674c31f9cc5d4e86c03f10b59e0a00 (diff) |
Use dprint for internal formatting (#6682)
Diffstat (limited to 'std/node/_fs/_fs_common.ts')
-rw-r--r-- | std/node/_fs/_fs_common.ts | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/std/node/_fs/_fs_common.ts b/std/node/_fs/_fs_common.ts index 3c20ca73e..165b9aeca 100644 --- a/std/node/_fs/_fs_common.ts +++ b/std/node/_fs/_fs_common.ts @@ -35,7 +35,7 @@ export interface WriteFileOptions extends FileOptions { } export function isFileOptions( - fileOptions: string | WriteFileOptions | undefined + fileOptions: string | WriteFileOptions | undefined, ): fileOptions is FileOptions { if (!fileOptions) return false; @@ -47,14 +47,15 @@ export function isFileOptions( } export function getEncoding( - optOrCallback?: FileOptions | WriteFileOptions | Function | Encodings | null + optOrCallback?: FileOptions | WriteFileOptions | Function | Encodings | null, ): Encodings | null { if (!optOrCallback || typeof optOrCallback === "function") { return null; } - const encoding = - typeof optOrCallback === "string" ? optOrCallback : optOrCallback.encoding; + const encoding = typeof optOrCallback === "string" + ? optOrCallback + : optOrCallback.encoding; if (!encoding) return null; return encoding; } |