From: Kunal Marwaha Date: Sat, 18 Mar 2017 06:31:46 +0000 (-0400) Subject: Fix lint errors X-Git-Tag: 2.18.0~5^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=43e92fa71897bc8aff6a4322e9101c1279661667;p=thirdparty%2Fmoment.git Fix lint errors --- diff --git a/tasks/transpile.js b/tasks/transpile.js index 25011ed81..ea8a15a0f 100644 --- a/tasks/transpile.js +++ b/tasks/transpile.js @@ -280,7 +280,9 @@ module.exports = function (grunt) { grunt.log.ok('build/umd/min/moment-with-locales.custom.js'); }).then(function () { var moment = require('../build/umd/min/moment-with-locales.custom.js'); - if (moment.locales().filter(locale => locale !== 'en').length !== localeFiles.length) { + if (moment.locales().filter(function (locale) { + return locale !== 'en'; + }).length !== localeFiles.length) { throw new Error( 'You probably specified locales requiring ' + 'parent locale, but didn\'t specify parent');