Read-only mirror — the public repositories of the Forgejo instance, refreshed every 10 minutes. The live instance (fg.dieschoenewolke.de) is reachable only over the VPN; clone here with https://git.dieschoenewolke.de/git/<owner>/<repo>.git.
summaryrefslogtreecommitdiff
path: root/src/fs-helper.ts
diff options
context:
space:
mode:
authorTatyana Kostromskaya <takost@github.com>2023-10-05 13:10:00 +0200
committerTatyana Kostromskaya <takost@github.com>2023-10-05 13:10:00 +0200
commit6e020c8cc7b0df394197c68256fddb081d632d8f (patch)
treefaf473ae57c57aaf3f351362a5c85b398d9b5b6f /src/fs-helper.ts
parent991687ddcca4019bc521e29e408b1fa93e7b3492 (diff)
.
Diffstat (limited to 'src/fs-helper.ts')
-rw-r--r--src/fs-helper.ts15
1 files changed, 9 insertions, 6 deletions
diff --git a/src/fs-helper.ts b/src/fs-helper.ts
index 3741d35..00ad941 100644
--- a/src/fs-helper.ts
+++ b/src/fs-helper.ts
@@ -18,8 +18,9 @@ export function directoryExistsSync(path: string, required?: boolean): boolean {
}
throw new Error(
- `Encountered an error when checking whether path '${path}' exists: ${(error as any)
- ?.message ?? error}`
+ `Encountered an error when checking whether path '${path}' exists: ${
+ (error as any)?.message ?? error
+ }`
)
}
@@ -45,8 +46,9 @@ export function existsSync(path: string): boolean {
}
throw new Error(
- `Encountered an error when checking whether path '${path}' exists: ${(error as any)
- ?.message ?? error}`
+ `Encountered an error when checking whether path '${path}' exists: ${
+ (error as any)?.message ?? error
+ }`
)
}
@@ -67,8 +69,9 @@ export function fileExistsSync(path: string): boolean {
}
throw new Error(
- `Encountered an error when checking whether path '${path}' exists: ${(error as any)
- ?.message ?? error}`
+ `Encountered an error when checking whether path '${path}' exists: ${
+ (error as any)?.message ?? error
+ }`
)
}