From d02f112200a3b48a0a3c4fb4b1acaacdeabfdec1 Mon Sep 17 00:00:00 2001 From: Yar Kravtsov Date: Sat, 24 May 2025 18:13:03 +0300 Subject: [PATCH] fix(core): remove unnecessary Windows drive letter check in getRelativePath --- internal/core/lnk.go | 3 --- 1 file changed, 3 deletions(-) diff --git a/internal/core/lnk.go b/internal/core/lnk.go index 269da93..b9c3f1e 100644 --- a/internal/core/lnk.go +++ b/internal/core/lnk.go @@ -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 }