diff --git a/files.js b/files.js index fecca81..f6f11d9 100644 --- a/files.js +++ b/files.js @@ -46,10 +46,10 @@ function sortByNameField(a, b) { async function fileType(name) { let f = await FileType.fromStream(fs.createReadStream(name)); - if (f === undefined) + if (f === undefined) { if (name.endsWith("txt")) return "text/plain"; - else + } else return f.mime; return "octet-stream"; }