diff --git a/async & performance/ch4.md b/async & performance/ch4.md index fcbc159c2..fa433c362 100644 --- a/async & performance/ch4.md +++ b/async & performance/ch4.md @@ -1168,12 +1168,12 @@ Hiding your Promise logic inside a function that you merely call from your gener ```js function bar() { - Promise.all( [ - baz( .. ) - .then( .. ), - Promise.race( [ .. ] ) - ] ) - .then( .. ) + return Promise.all( [ + baz( .. ) + .then( .. ), + Promise.race( [ .. ] ) + ] ) + .then( .. ) } ```