Skip to content

Instantly share code, notes, and snippets.

@dignifiedquire
Created May 6, 2016 19:36
Show Gist options
  • Save dignifiedquire/059b28b181d44c2c3f2c9cb87a2f7d56 to your computer and use it in GitHub Desktop.
Save dignifiedquire/059b28b181d44c2c3f2c9cb87a2f7d56 to your computer and use it in GitHub Desktop.
// before
async.each(
Object.keys(this.transports),
(key, cb) => this.transports[key].close(cb),
() => {
// Ignoring close errors
callback()
}
)
// after
async.each(
Object.keys(this.transports),
(key, cb) => this.transports[key].close(cb),
callback
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment