Remove redundant 'if'

This commit is contained in:
Adam Hosman 2019-02-25 23:36:06 +01:00 committed by GitHub
parent 408ba7d4e4
commit 5d42d8b3c7
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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`"