File tree 1 file changed +2
-3
lines changed 1 file changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -41,12 +41,11 @@ export class StorageKeyRecipeResolver {
41
41
for ( const recipe of this . runtime . context . allRecipes ) {
42
42
const arc = this . runtime . newArc ( this . getArcId ( recipe ) , ramDiskStorageKeyPrefixForTest ( ) ) ;
43
43
const opts = { errors : new Map < Recipe | RecipeComponent , string > ( ) } ;
44
- const resolved = await this . resolveOrNormalize ( recipe , arc , opts ) ;
44
+ const resolved = await this . tryResolve ( recipe , arc , opts ) ;
45
45
if ( ! resolved ) {
46
46
throw Error ( `Recipe ${ recipe . name } failed to resolve:\n${ [ ...opts . errors . values ( ) ] . join ( '\n' ) } ` ) ;
47
47
}
48
48
this . createStoresForCreateHandles ( resolved , arc ) ;
49
- resolved . normalize ( ) ;
50
49
if ( ! resolved . isResolved ( ) ) {
51
50
throw Error ( `Recipe ${ resolved . name } did not properly resolve!\n${ resolved . toString ( { showUnresolved : true } ) } ` ) ;
52
51
}
@@ -62,7 +61,7 @@ export class StorageKeyRecipeResolver {
62
61
* @param arc Arc is associated with input recipe
63
62
* @param opts contains `errors` map for reporting.
64
63
*/
65
- async resolveOrNormalize ( recipe : Recipe , arc : Arc , opts ?: IsValidOptions ) : Promise < Recipe | null > {
64
+ async tryResolve ( recipe : Recipe , arc : Arc , opts ?: IsValidOptions ) : Promise < Recipe | null > {
66
65
const normalized = recipe . clone ( ) ;
67
66
normalized . normalize ( ) ;
68
67
if ( normalized . isResolved ( ) ) return normalized ;
You can’t perform that action at this time.
0 commit comments