From 3e1133679b4f5cb956f58ea712a6abb392ddb8d9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cl=C3=A1udio=20Patr=C3=ADcio?= Date: Thu, 4 May 2023 13:51:03 +0100 Subject: [PATCH] Update index.js lint fixed --- src/utils/index.js | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/src/utils/index.js b/src/utils/index.js index 7e3b811cd..28daf68d6 100644 --- a/src/utils/index.js +++ b/src/utils/index.js @@ -2,10 +2,13 @@ function convertPathToHtml(path) { let htmlpath = '' while (path.startsWith('../')) { path = path.slice(3) - if (htmlpath.length < 2) htmlpath += '.' - else htmlpath += '/..' + if (htmlpath.length < 2) { + htmlpath += '.' + } + else { + htmlpath += '/..' + } } - return htmlpath }