Created
May 6, 2016 19:36
-
-
Save dignifiedquire/059b28b181d44c2c3f2c9cb87a2f7d56 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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