From a4ea716ee83ead697ec22cf908680f4b3c7d1ca8 Mon Sep 17 00:00:00 2001 From: RichyHBM Date: Sun, 19 Nov 2023 22:50:35 +0000 Subject: [PATCH] Fix linting issues --- backend/stack.ts | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/backend/stack.ts b/backend/stack.ts index a535e04..26b49ca 100644 --- a/backend/stack.ts +++ b/backend/stack.ts @@ -147,10 +147,9 @@ export class Stack { // Write or overwrite the compose.yaml fs.writeFileSync(path.join(dir, this._composeFileName), this.composeYAML); - if(process.env.PUID && process.env.PGID) - { - var uid: number = Number(process.env.PUID); - var gid: number = Number(process.env.PGID); + if (process.env.PUID && process.env.PGID) { + const uid = Number(process.env.PUID); + const gid = Number(process.env.PGID); fs.lchownSync(dir, uid, gid); fs.chownSync(path.join(dir, this._composeFileName), uid, gid); }