From a774c879d4cf08a76fc404771883807d27465265 Mon Sep 17 00:00:00 2001 From: MCMXC <16797721+mcmxcdev@users.noreply.github.com> Date: Thu, 7 Dec 2023 22:37:37 -0700 Subject: refactor: code cleanup (#1476) - auto update `settings.json` due to new vscode version - replace deprecated `e.keyCode` with `e.key` - fix various code snippets with sonarlint and other lint plugins --- src/api/server/ServerApi.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/api/server/ServerApi.ts') diff --git a/src/api/server/ServerApi.ts b/src/api/server/ServerApi.ts index 6e4485cfb..1530dd478 100644 --- a/src/api/server/ServerApi.ts +++ b/src/api/server/ServerApi.ts @@ -506,7 +506,7 @@ export default class ServerApi { try { const config = readJsonSync(file); - if (Object.prototype.hasOwnProperty.call(config, 'services')) { + if (Object.hasOwn(config, 'services')) { const services = await Promise.all( config.services.map(async (s: { service: any }) => { const service = s; -- cgit v1.2.3-70-g09d2