File tree 1 file changed +5
-4
lines changed 1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -57,7 +57,12 @@ class LibraryScanner {
57
57
PhysicalResourceProvider .INSTANCE , sdk, runPubList);
58
58
var packageMapInfo = pubPackageMapProvider.computePackageMap (
59
59
PhysicalResourceProvider .INSTANCE .getResource (packagePath) as Folder );
60
+
60
61
var packageMap = packageMapInfo.packageMap;
62
+ if (packageMap == null ) {
63
+ throw new StateError ('An error occurred getting the package map '
64
+ 'for the file at `$dotPackagesPath `.' );
65
+ }
61
66
62
67
var packageNames = < String > [];
63
68
packageMap.forEach ((k, v) {
@@ -74,10 +79,6 @@ class LibraryScanner {
74
79
"Could not determine package name for package at $packagePath " );
75
80
}
76
81
77
- if (packageMap == null ) {
78
- throw new StateError ('An error occurred getting the package map '
79
- 'for the file at `$dotPackagesPath `.' );
80
- }
81
82
UriResolver packageResolver = new PackageMapUriResolver (
82
83
PhysicalResourceProvider .INSTANCE , packageMap);
83
84
You can’t perform that action at this time.
0 commit comments