File tree Expand file tree Collapse file tree 1 file changed +1
-3
lines changed
src/Symfony/Component/AssetMapper/ImportMap Expand file tree Collapse file tree 1 file changed +1
-3
lines changed Original file line number Diff line number Diff line change @@ -172,18 +172,16 @@ public function getRawImportMapData(): array
172
172
if (!$ asset ) {
173
173
throw new \InvalidArgumentException (sprintf ('The asset "%s" cannot be found in any asset map paths. ' , $ entry ->path ));
174
174
}
175
-
176
- $ path = $ asset ->publicPath ;
177
175
} else {
178
176
$ sourcePath = $ this ->packageDownloader ->getDownloadedPath ($ entry ->importName );
179
177
$ asset = $ this ->assetMapper ->getAssetFromSourcePath ($ sourcePath );
180
178
181
179
if (!$ asset ) {
182
180
throw new \InvalidArgumentException (sprintf ('The "%s" vendor asset is missing. Run "php bin/console importmap:install". ' , $ entry ->importName ));
183
181
}
184
- $ path = $ asset ->publicPath ;
185
182
}
186
183
184
+ $ path = $ asset ->publicPath ;
187
185
$ data = ['path ' => $ path , 'type ' => $ entry ->type ->value ];
188
186
$ rawImportMapData [$ entry ->importName ] = $ data ;
189
187
}
You can’t perform that action at this time.
0 commit comments