Skip to content

Commit 1fbda21

Browse files
committed
Merge remote-tracking branch 'origin/main' into cli-pkg
2 parents 1e70242 + aa81b12 commit 1fbda21

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

lib/src/importer/node_to_dart/async_file.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ class NodeToDartAsyncFileImporter extends AsyncImporter {
3030
NodeToDartAsyncFileImporter(this._findFileUrl);
3131

3232
FutureOr<Uri?> canonicalize(Uri url) async {
33-
if (url.scheme != 'file' && url.scheme != '') return null;
33+
if (url.scheme == 'file') return _filesystemImporter.canonicalize(url);
3434

3535
var result = _findFileUrl(
3636
url.toString(), CanonicalizeOptions(fromImport: fromImport));

lib/src/importer/node_to_dart/file.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ class NodeToDartFileImporter extends Importer {
2727
NodeToDartFileImporter(this._findFileUrl);
2828

2929
Uri? canonicalize(Uri url) {
30-
if (url.scheme != 'file' && url.scheme != '') return null;
30+
if (url.scheme == 'file') return _filesystemImporter.canonicalize(url);
3131

3232
var result = _findFileUrl(
3333
url.toString(), CanonicalizeOptions(fromImport: fromImport));

0 commit comments

Comments
 (0)