Skip to content

Commit 5d42d8b

Browse files
authored
Remove redundant 'if'
1 parent 408ba7d commit 5d42d8b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

6-async/02-promise-basics/article.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ Further, `resolve`/`reject` expect only one argument and will ignore additional
9999
````
100100

101101
```smart header="Reject with `Error` objects"
102-
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.
102+
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.
103103
```
104104
105105
````smart header="Immediately calling `resolve`/`reject`"

0 commit comments

Comments
 (0)