mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-05-28 19:41:33 +02:00
remove guard helper
This commit is contained in:
@@ -36,9 +36,10 @@ module.exports = OutputFileFinder = {
|
||||
const outputFiles = []
|
||||
for (const file of Array.from(allFiles)) {
|
||||
if (!incomingResources.has(file)) {
|
||||
const type = Path.extname(file)
|
||||
outputFiles.push({
|
||||
path: file,
|
||||
type: __guard__(file.match(/\.([^\.]+)$/), (x) => x[1]),
|
||||
type: Path.extname(file) || undefined,
|
||||
})
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user