mirror of
https://github.com/ruanyf/es6tutorial.git
synced 2025-05-28 21:32:20 +00:00
fix: add parentheses
This commit is contained in:
parent
2bb8556938
commit
90b2a2047c
@ -373,7 +373,7 @@ async function myFunction() {
|
|||||||
await somethingThatReturnsAPromise()
|
await somethingThatReturnsAPromise()
|
||||||
.catch(function (err) {
|
.catch(function (err) {
|
||||||
console.log(err);
|
console.log(err);
|
||||||
};
|
});
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user