]> git.ipfire.org Git - thirdparty/moment.git/commitdiff
jshint satisfaction
authorIskren Chernev <iskren.chernev@gmail.com>
Tue, 1 Nov 2016 13:58:32 +0000 (13:58 +0000)
committerIskren Chernev <iskren.chernev@gmail.com>
Sun, 6 Nov 2016 08:48:45 +0000 (01:48 -0700)
tasks/transpile.js

index 5ab8dd5337603629000d6f93a3b0b4dce386a262..75d820ea0bfcf1d1d1d1b20cd57ab0d5ca3d68ee 100644 (file)
@@ -281,10 +281,10 @@ 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().length != localeFiles.length) {
+            if (moment.locales().length !== localeFiles.length) {
                 throw new Error(
                     'You probably specified locales requiring ' +
-                    'parent locale, but didn\'t specify parent')
+                    'parent locale, but didn\'t specify parent');
             }
         }).then(done, function (e) {
             grunt.log.error('error transpiling-custom', e);