Skip to content

Commit

Permalink
Revert "Alert on wsl.localhost Path (#1522)" (#1597)
Browse files Browse the repository at this point in the history
This reverts commit a5ff862.
  • Loading branch information
dbanck authored Jan 23, 2024
1 parent bc6a022 commit 3f0d770
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 14 deletions.
10 changes: 1 addition & 9 deletions internal/uri/uri.go
Original file line number Diff line number Diff line change
Expand Up @@ -206,13 +206,5 @@ func IsWSLURI(uri string) bool {
return false
}

if u.Scheme == "file" && u.Host == "wsl$" {
return true
}

if u.Scheme == "file" && u.Host == "wsl.localhost" {
return true
}

return false
return u.Scheme == "file" && u.Host == "wsl$"
}
5 changes: 0 additions & 5 deletions internal/uri/uri_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -193,11 +193,6 @@ func TestIsWSLURI(t *testing.T) {
uri: `file://wsl%24/Ubuntu/home/james/some/path`,
want: true,
},
{
name: "Localhost WSL file path should return true",
uri: `file://wsl.localhost/Ubuntu/home/james/foo`,
want: true,
},
{
name: "Regular file path should return false",
uri: `file://C:/foo/james/foo`,
Expand Down

0 comments on commit 3f0d770

Please sign in to comment.