@@ -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