]> git.ipfire.org Git - thirdparty/moment.git/commitdiff
Fix code style errors
authorTim Fish <tim@timfishy.co.uk>
Sat, 4 Mar 2017 15:14:27 +0000 (16:14 +0100)
committerIskren Chernev <iskren.chernev@gmail.com>
Sat, 11 Mar 2017 23:17:45 +0000 (01:17 +0200)
src/locale/es-do.js
src/locale/es.js
src/locale/fy.js
src/locale/nl-be.js
src/locale/nl.js

index ef2e1bd1993b7239f483de6143a3bb83a598d760..c0e713b1e78644c9176955d919cd1d2414d4b849 100644 (file)
@@ -9,7 +9,7 @@ var monthsShortDot = 'ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic
 export default moment.defineLocale('es-do', {
     months : 'enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre'.split('_'),
     monthsShort : function (m, format) {
-        if(!m){
+        if (!m) {
             return monthsShortDot;
         } else if (/-MMM-/.test(format)) {
             return monthsShort[m.month()];
index 7bb814c741e8b9f338236639c9dd18ee5665b4ff..f4b720e66d2cd22a063e4ece2491b8a7de292982 100644 (file)
@@ -10,7 +10,7 @@ var monthsShortDot = 'ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic
 export default moment.defineLocale('es', {
     months : 'enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre'.split('_'),
     monthsShort : function (m, format) {
-        if(!m){
+        if (!m) {
             return monthsShortDot;
         } else if (/-MMM-/.test(format)) {
             return monthsShort[m.month()];
index b3008e8dce4a82902bc1fcb1ab2b43679b66267e..1b49a63180f6ba8c78d0ce6ab424e9de23a2c130 100644 (file)
@@ -10,7 +10,7 @@ var monthsShortWithDots = 'jan._feb._mrt._apr._mai_jun._jul._aug._sep._okt._nov.
 export default moment.defineLocale('fy', {
     months : 'jannewaris_febrewaris_maart_april_maaie_juny_july_augustus_septimber_oktober_novimber_desimber'.split('_'),
     monthsShort : function (m, format) {
-        if(!m){
+        if (!m) {
             return monthsShortWithDots;
         } else if (/-MMM-/.test(format)) {
             return monthsShortWithoutDots[m.month()];
index a2bfbfa4e7f4ac263646a1055ae1b3e7f4fcf4c3..adeb7e7443d95dde61d14bd9e578d953d923c63e 100644 (file)
@@ -14,7 +14,7 @@ var monthsRegex = /^(januari|februari|maart|april|mei|april|ju[nl]i|augustus|sep
 export default moment.defineLocale('nl-be', {
     months : 'januari_februari_maart_april_mei_juni_juli_augustus_september_oktober_november_december'.split('_'),
     monthsShort : function (m, format) {
-        if(!m){
+        if (!m) {
             return monthsShortWithDots;
         } else if (/-MMM-/.test(format)) {
             return monthsShortWithoutDots[m.month()];
index 58922981cd820b30420263f0b336dbc7eda124ad..15fc330a974eae215201ca67f438a25041b8c957 100644 (file)
@@ -14,7 +14,7 @@ var monthsRegex = /^(januari|februari|maart|april|mei|april|ju[nl]i|augustus|sep
 export default moment.defineLocale('nl', {
     months : 'januari_februari_maart_april_mei_juni_juli_augustus_september_oktober_november_december'.split('_'),
     monthsShort : function (m, format) {
-        if(!m){
+        if (!m) {
             return monthsShortWithDots;
         } else if (/-MMM-/.test(format)) {
             return monthsShortWithoutDots[m.month()];