Use arrow functions for callbacks

This commit is contained in:
MICHAEL JACKSON
2017-11-08 10:14:46 -08:00
parent a8ab0b7dab
commit b614f8646d
14 changed files with 71 additions and 78 deletions

View File

@ -20,7 +20,7 @@ const FindExtensions = ['', '.js', '.json']
* depending on which one is available, similar to require('lib/file').
*/
function findFile(base, useIndex, callback) {
FindExtensions.reduceRight(function(next, ext) {
FindExtensions.reduceRight((next, ext) => {
const file = base + ext
return function() {