Skip to content

Commit c30fb38

Browse files
committed
Fix potential toLowerCase error
1 parent b45d468 commit c30fb38

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/utils/mimeUtility.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ class MimeType {
66
public readonly charset?: string;
77
public constructor(type: string, subtype: string, charset?: string) {
88
this.type = type.toLowerCase();
9-
this.subtype = subtype.toLowerCase();
9+
this.subtype = subtype?.toLowerCase() ?? '';
1010
this.charset = charset;
1111
}
1212

0 commit comments

Comments
 (0)