mirror of
https://github.com/overleaf/overleaf.git
synced 2024-09-16 02:52:31 -04:00
remove guard helper
This commit is contained in:
parent
0bae53c7f3
commit
c044db4897
1 changed files with 2 additions and 1 deletions
|
@ -36,9 +36,10 @@ module.exports = OutputFileFinder = {
|
||||||
const outputFiles = []
|
const outputFiles = []
|
||||||
for (const file of Array.from(allFiles)) {
|
for (const file of Array.from(allFiles)) {
|
||||||
if (!incomingResources.has(file)) {
|
if (!incomingResources.has(file)) {
|
||||||
|
const type = Path.extname(file)
|
||||||
outputFiles.push({
|
outputFiles.push({
|
||||||
path: file,
|
path: file,
|
||||||
type: __guard__(file.match(/\.([^\.]+)$/), (x) => x[1]),
|
type: Path.extname(file) || undefined,
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue