Skip to content

Commit d016690

Browse files
authored
Fix indent (node-fetch#1043)
1 parent 17b6c10 commit d016690

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

docs/ERROR-HANDLING.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -12,13 +12,13 @@ The basics:
1212
const fetch = require('node-fetch');
1313

1414
(async () => {
15-
try {
16-
await fetch(url, {signal});
17-
} catch (error) {
18-
if (error.name === 'AbortError') {
19-
console.log('request was aborted');
20-
}
15+
try {
16+
await fetch(url, {signal});
17+
} catch (error) {
18+
if (error.name === 'AbortError') {
19+
console.log('request was aborted');
2120
}
21+
}
2222
})();
2323
```
2424

0 commit comments

Comments
 (0)