fixed lint

pull/5095/head
Cláudio Patrício 2023-05-08 11:03:40 +01:00
parent 3e1133679b
commit 5aca6b1082
1 changed files with 2 additions and 6 deletions

View File

@ -2,13 +2,9 @@ function convertPathToHtml(path) {
let htmlpath = ''
while (path.startsWith('../')) {
path = path.slice(3)
if (htmlpath.length < 2) {
htmlpath += '.'
}
else {
htmlpath += '/..'
}
htmlpath.length < 2 ? htmlpath += '.' : htmlpath += '/..'
}
return htmlpath
}