summary refs log tree commit diff
path: root/src/util/secretUtils.js
diff options
context:
space:
mode:
authorRory& <root@rory.gay>2025-05-29 22:48:16 +0200
committerRory& <root@rory.gay>2025-05-29 22:48:48 +0200
commit9d33b2fe6b3fbea60d981d9f4ed24cf82b05a7af (patch)
treeee44d3b3df88febdce52efe436f4582820fb6471 /src/util/secretUtils.js
parentGet database working (diff)
downloadnodejs-final-assignment-9d33b2fe6b3fbea60d981d9f4ed24cf82b05a7af.tar.xz
Prettier config
Diffstat (limited to 'src/util/secretUtils.js')
-rw-r--r--src/util/secretUtils.js12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/util/secretUtils.js b/src/util/secretUtils.js

index 33e5fef..bbad8ca 100644 --- a/src/util/secretUtils.js +++ b/src/util/secretUtils.js
@@ -1,9 +1,9 @@ -import fs from "node:fs/promises"; +import fs from 'node:fs/promises'; export async function readSecret(path) { - if (!path) { - throw new Error("Path to secret file is required"); - } - const content = await fs.readFile(path, "utf8"); - return content.trim(); + if (!path) { + throw new Error('Path to secret file is required'); + } + const content = await fs.readFile(path, 'utf8'); + return content.trim(); }