Commit 0b926b9
authored
Remove a layer of indirection for defaultRejectedValue
Came across this while evaluating the library -- it looks like it was inadvertently doing `Promise.resolve(Promise.reject(err))`. That's mostly equivalent enough to `Promise.reject(err)`, but we might as well just do the simple thing.1 parent 3ea3f71 commit 0b926b9
1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
154 | 154 | | |
155 | 155 | | |
156 | 156 | | |
157 | | - | |
| 157 | + | |
158 | 158 | | |
159 | 159 | | |
160 | 160 | | |
| |||
0 commit comments