diff --git a/internal/uri/uri.go b/internal/uri/uri.go index 76633110f..90ba3b05a 100644 --- a/internal/uri/uri.go +++ b/internal/uri/uri.go @@ -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$" } diff --git a/internal/uri/uri_test.go b/internal/uri/uri_test.go index a9c289df9..e75aa5a66 100644 --- a/internal/uri/uri_test.go +++ b/internal/uri/uri_test.go @@ -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`,