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/fs/ensure_dir.ts | |
parent | 9eca71caa1674c31f9cc5d4e86c03f10b59e0a00 (diff) |
Use dprint for internal formatting (#6682)
Diffstat (limited to 'std/fs/ensure_dir.ts')
-rw-r--r-- | std/fs/ensure_dir.ts | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/std/fs/ensure_dir.ts b/std/fs/ensure_dir.ts index 961476028..f5b5cd309 100644 --- a/std/fs/ensure_dir.ts +++ b/std/fs/ensure_dir.ts @@ -11,7 +11,9 @@ export async function ensureDir(dir: string): Promise<void> { const fileInfo = await Deno.lstat(dir); if (!fileInfo.isDirectory) { throw new Error( - `Ensure path exists, expected 'dir', got '${getFileInfoType(fileInfo)}'` + `Ensure path exists, expected 'dir', got '${ + getFileInfoType(fileInfo) + }'`, ); } } catch (err) { @@ -34,7 +36,9 @@ export function ensureDirSync(dir: string): void { const fileInfo = Deno.lstatSync(dir); if (!fileInfo.isDirectory) { throw new Error( - `Ensure path exists, expected 'dir', got '${getFileInfoType(fileInfo)}'` + `Ensure path exists, expected 'dir', got '${ + getFileInfoType(fileInfo) + }'`, ); } } catch (err) { |