Fix indent (#1043)
This commit is contained in:
parent
17b6c10052
commit
d016690cd3
|
@ -12,13 +12,13 @@ The basics:
|
|||
const fetch = require('node-fetch');
|
||||
|
||||
(async () => {
|
||||
try {
|
||||
await fetch(url, {signal});
|
||||
} catch (error) {
|
||||
if (error.name === 'AbortError') {
|
||||
console.log('request was aborted');
|
||||
}
|
||||
try {
|
||||
await fetch(url, {signal});
|
||||
} catch (error) {
|
||||
if (error.name === 'AbortError') {
|
||||
console.log('request was aborted');
|
||||
}
|
||||
}
|
||||
})();
|
||||
```
|
||||
|
||||
|
|
Loading…
Reference in New Issue