refactor: path/absolute?

This commit is contained in:
Tienson Qin
2023-03-27 18:47:32 +08:00
committed by Andelf
parent 80f708831b
commit c1e8d6ed8e
8 changed files with 26 additions and 18 deletions

View File

@@ -711,7 +711,7 @@
(gp-util/url? path)
path
(util/absolute-path? path)
(path/absolute? path)
path
:else
@@ -1009,7 +1009,7 @@
(defn- relative-assets-path->absolute-path
[path]
(if (util/absolute-path? path)
(if (path/absolute? path)
path
(.. util/node-path
(join (config/get-repo-dir (state/get-current-repo))