Skip to content

Commit

Permalink
Code style to match repo
Browse files Browse the repository at this point in the history
Added curly brackets to match the rest of the repository
  • Loading branch information
JamieStivala authored Feb 8, 2024
1 parent e4bc388 commit 2cf76ec
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scripts/updatedb.js
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,7 @@ function check(database, cb) {

if(status === 301 || status === 302 || status === 303 || status === 307 || status === 308) {
return https.get(getHTTPOptions(response.headers.location), onResponse);
}else if (status !== 200) {
} else if (status !== 200) {
console.log(chalk.red('ERROR') + ': HTTP Request Failed [%d %s]', status, http.STATUS_CODES[status]);
client.abort();
process.exit(1);
Expand Down Expand Up @@ -247,7 +247,7 @@ function fetch(database, cb) {

if(status === 301 || status === 302 || status === 303 || status === 307 || status === 308) {
return https.get(getHTTPOptions(response.headers.location), onResponse);
}else if (status !== 200) {
} else if (status !== 200) {
console.log(chalk.red('ERROR') + ': HTTP Request Failed [%d %s]', status, http.STATUS_CODES[status]);
client.abort();
process.exit(1);
Expand Down

0 comments on commit 2cf76ec

Please sign in to comment.