diff options
Diffstat (limited to 'examples/macros/mystery-box.ts')
-rw-r--r-- | examples/macros/mystery-box.ts | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/examples/macros/mystery-box.ts b/examples/macros/mystery-box.ts index 6583c9868..c686f82c3 100644 --- a/examples/macros/mystery-box.ts +++ b/examples/macros/mystery-box.ts @@ -6,10 +6,7 @@ export function mysteryBox(callExpression) { const count: number = parseInt(countString, 10); // validate - if (!(count >= 1 && count <= 1000)) - return new Error( - `Argument ${countString} is expected to be between 1 and 1000`, - ); + if (!(count >= 1 && count <= 1000)) return new Error(`Argument ${countString} is expected to be between 1 and 1000`); // return a value return (Math.random() * count) | 0; |