Skip to content

Commit

Permalink
Fixup extensions sample (#1211)
Browse files Browse the repository at this point in the history
  • Loading branch information
jasnell authored Sep 20, 2023
1 parent 007f816 commit 0002ba1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion samples/extensions/burrito-shop-impl.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ export class BurritoShop {
}

makeBurrito(type) {
if (!type in this.#recipes) {
if (!(type in this.#recipes)) {
throw new Error(`recipe not found: ${type}`);
}
return makeBurritoImpl(this.#recipes[type]);
Expand Down

0 comments on commit 0002ba1

Please sign in to comment.