From 5aca6b1082e59ae77de9ebaa1ee549c1422e4d27 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cl=C3=A1udio=20Patr=C3=ADcio?= Date: Mon, 8 May 2023 11:03:40 +0100 Subject: [PATCH] fixed lint --- src/utils/index.js | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/src/utils/index.js b/src/utils/index.js index 28daf68d6..b33274957 100644 --- a/src/utils/index.js +++ b/src/utils/index.js @@ -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 }