Skip to content

Instantly share code, notes, and snippets.

@zeroFruit
Created July 5, 2018 09:24
Show Gist options
  • Save zeroFruit/b8f9571204f620f878fcbb5aa16579b0 to your computer and use it in GitHub Desktop.
Save zeroFruit/b8f9571204f620f878fcbb5aa16579b0 to your computer and use it in GitHub Desktop.
All good & One good
let allGood = true;
proposalResponses.forEach((pr) => {
let oneGood = false;
if (pr.response && pr.response.status === 200) {
oneGood = true;
logger.info('install proposal was good');
} else {
logger.error('install proposal was bad');
}
allGood = allGood && oneGood;
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment