Skip to content
This repository was archived by the owner on Jul 6, 2025. It is now read-only.

Commit 1245049

Browse files
committed
Clean up
1 parent 17e5652 commit 1245049

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

server/helper.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -108,11 +108,11 @@ export function getAlephPkgUri() {
108108

109109
/** get the relative path from `from` to `to`. */
110110
export function toRelativePath(from: string, to: string): string {
111-
const r = relative(from, to).replaceAll('\\', '/')
112-
if (!r.startsWith('.') && !r.startsWith('/')) {
113-
return './' + r
111+
const p = relative(from, to).replaceAll('\\', '/')
112+
if (!p.startsWith('.') && !p.startsWith('/')) {
113+
return './' + p
114114
}
115-
return r
115+
return p
116116
}
117117

118118
/** get source type by given url and content type. */

0 commit comments

Comments
 (0)