Removed unneccessary stringifying

This commit is contained in:
ltctceplrm 2024-02-06 02:51:00 +01:00
parent 5b35e552c5
commit 0634e3904f

View file

@ -19,7 +19,7 @@ export abstract class APIModel {
abstract getById(id: string): Promise<MediaTypeModel>;
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;
}
}