File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed
lib/src/importer/node_to_dart Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -30,7 +30,7 @@ class NodeToDartAsyncFileImporter extends AsyncImporter {
30
30
NodeToDartAsyncFileImporter (this ._findFileUrl);
31
31
32
32
FutureOr <Uri ?> canonicalize (Uri url) async {
33
- if (url.scheme != 'file' && url.scheme != '' ) return null ;
33
+ if (url.scheme == 'file' ) return _filesystemImporter. canonicalize (url) ;
34
34
35
35
var result = _findFileUrl (
36
36
url.toString (), CanonicalizeOptions (fromImport: fromImport));
Original file line number Diff line number Diff line change @@ -27,7 +27,7 @@ class NodeToDartFileImporter extends Importer {
27
27
NodeToDartFileImporter (this ._findFileUrl);
28
28
29
29
Uri ? canonicalize (Uri url) {
30
- if (url.scheme != 'file' && url.scheme != '' ) return null ;
30
+ if (url.scheme == 'file' ) return _filesystemImporter. canonicalize (url) ;
31
31
32
32
var result = _findFileUrl (
33
33
url.toString (), CanonicalizeOptions (fromImport: fromImport));
You can’t perform that action at this time.
0 commit comments