Kaynağa Gözat

fixed lint errors

Cláudio Patrício 1 yıl önce
ebeveyn
işleme
2458b90417
1 değiştirilmiş dosya ile 2 ekleme ve 2 silme
  1. 2 2
      src/utils/index.js

+ 2 - 2
src/utils/index.js

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