Skip to content

Commit

Permalink
Improve example in readme (#40)
Browse files Browse the repository at this point in the history
  • Loading branch information
khrj authored Feb 7, 2021
1 parent a998e75 commit 2d8347f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ Callback invoked on each retry. Receives the error thrown by `input` as the firs
const run = async () => {
const response = await fetch('https://sindresorhus.com/unicorn');

if (response.status !== 200) {
if (!response.ok) {
throw new Error(response.statusText);
}

Expand Down

0 comments on commit 2d8347f

Please # to comment.