From: Tim Fish Date: Sat, 4 Mar 2017 15:14:27 +0000 (+0100) Subject: Fix code style errors X-Git-Tag: 2.18.0~18^2~10 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=25e5ec57c92439cc1a5e677da70837164d7608eb;p=thirdparty%2Fmoment.git Fix code style errors --- diff --git a/src/locale/es-do.js b/src/locale/es-do.js index ef2e1bd19..c0e713b1e 100644 --- a/src/locale/es-do.js +++ b/src/locale/es-do.js @@ -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()]; diff --git a/src/locale/es.js b/src/locale/es.js index 7bb814c74..f4b720e66 100644 --- a/src/locale/es.js +++ b/src/locale/es.js @@ -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()]; diff --git a/src/locale/fy.js b/src/locale/fy.js index b3008e8dc..1b49a6318 100644 --- a/src/locale/fy.js +++ b/src/locale/fy.js @@ -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()]; diff --git a/src/locale/nl-be.js b/src/locale/nl-be.js index a2bfbfa4e..adeb7e744 100644 --- a/src/locale/nl-be.js +++ b/src/locale/nl-be.js @@ -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()]; diff --git a/src/locale/nl.js b/src/locale/nl.js index 58922981c..15fc330a9 100644 --- a/src/locale/nl.js +++ b/src/locale/nl.js @@ -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()];