From 66bb2d95cd834b97d13bc6c5cd8c4d7e116d0ac3 Mon Sep 17 00:00:00 2001 From: Iskren Chernev Date: Thu, 7 Jan 2016 00:27:58 +0200 Subject: [PATCH] Fix lint issues --- src/lib/locale/locales.js | 2 +- src/lib/utils/deprecate.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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); } } -- 2.47.2