diff options
author | MCMXC <16797721+mcmxcdev@users.noreply.github.com> | 2023-12-07 22:37:37 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-12-07 22:37:37 -0700 |
commit | a774c879d4cf08a76fc404771883807d27465265 (patch) | |
tree | 202c9afdeb4830d417e0ec7137a01e7981c8651c /src/api | |
parent | 6.6.1-nightly.17 [skip ci] (diff) | |
download | ferdium-app-a774c879d4cf08a76fc404771883807d27465265.tar.gz ferdium-app-a774c879d4cf08a76fc404771883807d27465265.tar.zst ferdium-app-a774c879d4cf08a76fc404771883807d27465265.zip |
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
Diffstat (limited to 'src/api')
-rw-r--r-- | src/api/server/ServerApi.ts | 2 |
1 files changed, 1 insertions, 1 deletions
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 { | |||
506 | try { | 506 | try { |
507 | const config = readJsonSync(file); | 507 | const config = readJsonSync(file); |
508 | 508 | ||
509 | if (Object.prototype.hasOwnProperty.call(config, 'services')) { | 509 | if (Object.hasOwn(config, 'services')) { |
510 | const services = await Promise.all( | 510 | const services = await Promise.all( |
511 | config.services.map(async (s: { service: any }) => { | 511 | config.services.map(async (s: { service: any }) => { |
512 | const service = s; | 512 | const service = s; |