]> git.ipfire.org Git - thirdparty/moment.git/commitdiff
Fix lint issues
authorIskren Chernev <iskren.chernev@gmail.com>
Wed, 6 Jan 2016 22:27:58 +0000 (00:27 +0200)
committerIskren Chernev <iskren.chernev@gmail.com>
Sat, 9 Jan 2016 09:38:04 +0000 (11:38 +0200)
src/lib/locale/locales.js
src/lib/utils/deprecate.js

index 9929f3285b435b93b075e002351224e45e95baff..00114cf552beff5ebd40149a1c772fba48b399a6 100644 (file)
@@ -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;
index 7fa8bf7c3e5c7bef3e159614d4146ee3f36f4310..eddcce2466d57614e5586479fbfb63f948579246 100644 (file)
@@ -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);
     }
 }