Skip to content

Commit

Permalink
Fixup extensions sample
Browse files Browse the repository at this point in the history
Fixes: #1207
  • Loading branch information
jasnell committed Sep 20, 2023
1 parent 2c2648a commit 18c6bf5
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 18c6bf5

Please sign in to comment.