Skip to content

Commit 982df82

Browse files
committed
feat: simplify relativePath renderer
1 parent d2b35a5 commit 982df82

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

builtin/renderer/relative_path.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,9 +34,7 @@ export function relativePath(
3434
// Convert absolute path in label to relative path
3535
items.forEach((item) => {
3636
const relpath = relative(base, item.detail.path);
37-
if (item.label.includes(item.detail.path)) {
38-
item.label = item.label.replace(item.detail.path, relpath);
39-
}
37+
item.label = item.label.replace(item.detail.path, relpath);
4038
});
4139
});
4240
}

0 commit comments

Comments
 (0)