Skip to content

Commit ef36fdf

Browse files
committed
renamed to tryResolve
1 parent 5703f02 commit ef36fdf

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/tools/storage-key-recipe-resolver.ts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -41,12 +41,11 @@ export class StorageKeyRecipeResolver {
4141
for (const recipe of this.runtime.context.allRecipes) {
4242
const arc = this.runtime.newArc(this.getArcId(recipe), ramDiskStorageKeyPrefixForTest());
4343
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);
4545
if (!resolved) {
4646
throw Error(`Recipe ${recipe.name} failed to resolve:\n${[...opts.errors.values()].join('\n')}`);
4747
}
4848
this.createStoresForCreateHandles(resolved, arc);
49-
resolved.normalize();
5049
if (!resolved.isResolved()) {
5150
throw Error(`Recipe ${resolved.name} did not properly resolve!\n${resolved.toString({showUnresolved: true})}`);
5251
}
@@ -62,7 +61,7 @@ export class StorageKeyRecipeResolver {
6261
* @param arc Arc is associated with input recipe
6362
* @param opts contains `errors` map for reporting.
6463
*/
65-
async resolveOrNormalize(recipe: Recipe, arc: Arc, opts?: IsValidOptions): Promise<Recipe | null> {
64+
async tryResolve(recipe: Recipe, arc: Arc, opts?: IsValidOptions): Promise<Recipe | null> {
6665
const normalized = recipe.clone();
6766
normalized.normalize();
6867
if (normalized.isResolved()) return normalized;

0 commit comments

Comments
 (0)