fix(core): remove unnecessary Windows drive letter check in getRelativePath

This commit is contained in:
Yar Kravtsov
2025-05-24 18:13:03 +03:00
parent f96bfb6ce0
commit d02f112200

View File

@@ -69,9 +69,6 @@ func getRelativePath(absPath string) (string, error) {
if strings.HasPrefix(relPath, "..") {
// Use absolute path but remove leading slash and drive letter (for cross-platform)
cleanPath := strings.TrimPrefix(absPath, "/")
if len(cleanPath) > 1 && cleanPath[1] == ':' {
// Windows drive letter, keep as is
}
return cleanPath, nil
}