Skip to content

Commit 0634e39

Browse files
committed
Removed unneccessary stringifying
1 parent 5b35e55 commit 0634e39

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/api/APIModel.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ export abstract class APIModel {
1919
abstract getById(id: string): Promise<MediaTypeModel>;
2020

2121
hasType(type: MediaType): boolean {
22-
if (this.types.contains(type) && !(this.plugin.settings[[this.apiName, type.toString()].filter(s => s).join('') as keyof typeof this.plugin.settings] === false)){
22+
if (this.types.contains(type) && !(this.plugin.settings[[this.apiName, type].filter(s => s).join('') as keyof typeof this.plugin.settings] === false)){
2323
return true;
2424
}
2525
}

0 commit comments

Comments
 (0)