Fix indent (#1043)

This commit is contained in:
Sean 2020-12-21 01:23:26 +08:00 committed by GitHub
parent 17b6c10052
commit d016690cd3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 6 additions and 6 deletions

View File

@ -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');
}
} }
}
})(); })();
``` ```