From 5f25fb08e741be737e7c7eb6c5ef3dc32fc97af2 Mon Sep 17 00:00:00 2001 From: Anton Livaja Date: Wed, 11 Jan 2023 23:01:21 -0500 Subject: [PATCH] chore: use join instead of interpolation MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Ricardo Arturo Cabral Mejía --- src/utils/settings.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/utils/settings.ts b/src/utils/settings.ts index 785ae60..cebc490 100644 --- a/src/utils/settings.ts +++ b/src/utils/settings.ts @@ -108,7 +108,7 @@ export class SettingsStatic { public static saveSettings(path: string, settings: ISettings) { debug('saving settings to %s: %o', path, settings) return fs.writeFileSync( - `${path}/settings.yaml`, + `join(path, 'settings.yaml'), yaml.dump(settings), { encoding: 'utf-8' }, )