Skip to content

Commit 50941e1

Browse files
author
JemyCheung
committed
utils.findMimeType
1 parent b26109b commit 50941e1

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/utils.js

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -266,9 +266,7 @@ function getUpHosts(token) {
266266

267267
export function findMimeType(fileType, mimeType) {
268268
return mimeType.find((elem) => {
269-
if (fileType == elem) {
270-
return elem;
271-
}
269+
return fileType == elem;
272270
});
273271
}
274272

0 commit comments

Comments
 (0)