]> git.ipfire.org Git - thirdparty/moment.git/commitdiff
Fix lint errors
authorKunal Marwaha <marwahaha@berkeley.edu>
Sat, 18 Mar 2017 06:31:46 +0000 (02:31 -0400)
committerIskren Chernev <iskren.chernev@gmail.com>
Sat, 18 Mar 2017 19:35:04 +0000 (21:35 +0200)
tasks/transpile.js

index 25011ed81c2e50fd64004fd01273b1263ce69c47..ea8a15a0ff1ea7c800f34f6296ee533930c2be52 100644 (file)
@@ -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');