From 0634e3904f3f4f3900a59e80cff45f59e3eedceb Mon Sep 17 00:00:00 2001 From: ltctceplrm <14954927+ltctceplrm@users.noreply.github.com> Date: Tue, 6 Feb 2024 02:51:00 +0100 Subject: [PATCH] Removed unneccessary stringifying --- src/api/APIModel.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/api/APIModel.ts b/src/api/APIModel.ts index 90bbe22..1dc05da 100644 --- a/src/api/APIModel.ts +++ b/src/api/APIModel.ts @@ -19,7 +19,7 @@ export abstract class APIModel { abstract getById(id: string): Promise; hasType(type: MediaType): boolean { - if (this.types.contains(type) && !(this.plugin.settings[[this.apiName, type.toString()].filter(s => s).join('') as keyof typeof this.plugin.settings] === false)){ + if (this.types.contains(type) && !(this.plugin.settings[[this.apiName, type].filter(s => s).join('') as keyof typeof this.plugin.settings] === false)){ return true; } }