Remove redundant 'if'
This commit is contained in:
parent
408ba7d4e4
commit
5d42d8b3c7
1 changed files with 1 additions and 1 deletions
|
@ -99,7 +99,7 @@ Further, `resolve`/`reject` expect only one argument and will ignore additional
|
|||
````
|
||||
|
||||
```smart header="Reject with `Error` objects"
|
||||
In case if something goes wrong, we can call `reject` with any type of argument (just like `resolve`). But it is recommended to use `Error` objects (or objects that inherit from `Error`). The reasoning for that will soon become apparent.
|
||||
In case something goes wrong, we can call `reject` with any type of argument (just like `resolve`). But it is recommended to use `Error` objects (or objects that inherit from `Error`). The reasoning for that will soon become apparent.
|
||||
```
|
||||
|
||||
````smart header="Immediately calling `resolve`/`reject`"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue