This commit is contained in:
João Moreno
2021-07-16 13:06:51 +02:00
parent 8df547fef3
commit bb5e8374d9

View File

@@ -22,9 +22,7 @@ type DarwinDocumentType = {
};
function isDocumentSuffix(str?: string): str is DarwinDocumentSuffix {
return str != undefined && (
str === 'document' || str === 'script' || str === 'file' || str === 'source code'
);
return str === 'document' || str === 'script' || str === 'file' || str === 'source code';
}
const root = path.dirname(path.dirname(__dirname));