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