From 1ca1585d69969c7c7eaa9f366ed3939d0a013716 Mon Sep 17 00:00:00 2001 From: Nanashi Date: Wed, 24 Jan 2024 23:21:22 +0900 Subject: [PATCH] =?UTF-8?q?=3D=3D=3D=20undefined/null=E3=82=92=E6=B6=88?= =?UTF-8?q?=E3=81=99=20(#1747)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * Delete: === undefined/nullを消す * Fix: テストを修正 * Change: 名前を変更 --- src/background/configMigration014.ts | 2 +- src/components/help/LibraryPolicy.vue | 10 +++++----- src/helpers/SelectionHelperForQInput.ts | 4 ++-- src/helpers/map.ts | 16 ++++++++-------- src/helpers/previewSliderHelper.ts | 6 +++--- src/infrastructures/EngineConnector.ts | 2 +- src/store/audioPlayer.ts | 4 ++-- src/store/dictionary.ts | 2 +- src/store/engine.ts | 8 ++++---- src/store/index.ts | 4 ++-- src/store/preset.ts | 6 +++--- src/store/project.ts | 6 +++--- src/store/proxy.ts | 2 +- src/store/utility.ts | 2 +- src/type/result.ts | 2 +- tests/unit/lib/map.spec.ts | 15 +++++---------- 16 files changed, 43 insertions(+), 48 deletions(-) diff --git a/src/background/configMigration014.ts b/src/background/configMigration014.ts index 62f371a327..df508cddef 100644 --- a/src/background/configMigration014.ts +++ b/src/background/configMigration014.ts @@ -25,7 +25,7 @@ export default function ({ if (fs.existsSync(configPath)) { const config = JSON.parse(fs.readFileSync(configPath, "utf-8")); - if (config?.__internal__?.migrations?.version === undefined) { + if (config?.__internal__?.migrations?.version == undefined) { throw new Error("configMigration014: config.json is invalid"); } diff --git a/src/components/help/LibraryPolicy.vue b/src/components/help/LibraryPolicy.vue index ca8a4c4b51..404b61c163 100644 --- a/src/components/help/LibraryPolicy.vue +++ b/src/components/help/LibraryPolicy.vue @@ -15,11 +15,11 @@