Skip to content

Commit 450ea80

Browse files
committed
refactor: remove filepath.Clean call in favor of filepath.Abs
1 parent 55a4850 commit 450ea80

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

pkg/console/console.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -103,8 +103,7 @@ func WgDown(cfgPath string) error {
103103
}
104104

105105
func sanitizeWgConfigPath(cfgPath string) (string, error) {
106-
// Clean the path (removes .., redundant separators, etc.)
107-
cleanPath := filepath.Clean(cfgPath)
106+
cleanPath := cfgPath
108107

109108
// Expand home directory if present
110109
home, err := os.UserHomeDir()

0 commit comments

Comments
 (0)