From: Iskren Chernev Date: Wed, 6 Jan 2016 22:27:58 +0000 (+0200) Subject: Fix lint issues X-Git-Tag: 2.11.1~9^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=66bb2d95cd834b97d13bc6c5cd8c4d7e116d0ac3;p=thirdparty%2Fmoment.git Fix lint issues --- diff --git a/src/lib/locale/locales.js b/src/lib/locale/locales.js index 9929f3285..00114cf55 100644 --- a/src/lib/locale/locales.js +++ b/src/lib/locale/locales.js @@ -41,7 +41,7 @@ function chooseLocale(names) { function loadLocale(name) { var oldLocale = null; // TODO: Find a better way to register and load all the locales in Node - if (!locales[name] && (typeof module !== "undefined") && + if (!locales[name] && (typeof module !== 'undefined') && module && module.exports) { try { oldLocale = globalLocale._abbr; diff --git a/src/lib/utils/deprecate.js b/src/lib/utils/deprecate.js index 7fa8bf7c3..eddcce246 100644 --- a/src/lib/utils/deprecate.js +++ b/src/lib/utils/deprecate.js @@ -4,7 +4,7 @@ import isUndefined from './is-undefined'; function warn(msg) { if (hooks.suppressDeprecationWarnings === false && - (typeof console !== "undefined") && console.warn) { + (typeof console !== 'undefined') && console.warn) { console.warn('Deprecation warning: ' + msg); } }