summaryrefslogtreecommitdiff
path: root/packages/db/src/runtime/utils.ts
diff options
context:
space:
mode:
Diffstat (limited to 'packages/db/src/runtime/utils.ts')
-rw-r--r--packages/db/src/runtime/utils.ts6
1 files changed, 3 insertions, 3 deletions
diff --git a/packages/db/src/runtime/utils.ts b/packages/db/src/runtime/utils.ts
index 098417fcc..97ad21ccd 100644
--- a/packages/db/src/runtime/utils.ts
+++ b/packages/db/src/runtime/utils.ts
@@ -1,6 +1,6 @@
import { AstroError } from 'astro/errors';
-const isWindows = process?.platform === "win32";
+const isWindows = process?.platform === 'win32';
/**
* Small wrapper around fetch that throws an error if the response is not OK. Allows for custom error handling as well through the onNotOK callback.
@@ -36,10 +36,10 @@ export default function slash(path: string) {
}
export function pathToFileURL(path: string): URL {
- if(isWindows) {
+ if (isWindows) {
let slashed = slash(path);
// Windows like C:/foo/bar
- if(!slashed.startsWith('/')) {
+ if (!slashed.startsWith('/')) {
slashed = '/' + slashed;
}
return new URL('file://' + slashed);