Skip to content

Commit

Permalink
Fixed split if logic to two line
Browse files Browse the repository at this point in the history
  • Loading branch information
Iswan Jumat committed Oct 2, 2016
1 parent 3f9d0c0 commit 6e76a4e
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions app.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,11 +27,10 @@ const API_PASSWORD = (process.env.API_PASSWORD) ?
const API_USER_ID = (process.env.API_USER_ID) ?
process.env.API_USER_ID : config.get('apiUserId');

if (!(APP_SECRET && VALIDATION_TOKEN && PAGE_ACCESS_TOKEN)) {
if (API_URI && API_USERNAME && API_PASSWORD && API_USER_ID) {
console.error('Missing config values');
process.exit(1);
}
// eslint-disable-next-line max-len
if (!(APP_SECRET && VALIDATION_TOKEN && PAGE_ACCESS_TOKEN && API_URI && API_USERNAME && API_PASSWORD && API_USER_ID)) {
console.error('Missing config values');
process.exit(1);
}


Expand Down

0 comments on commit 6e76a4e

Please sign in to comment.