From: Menelion Elensúle (Andre Polykanine) Date: Fri, 13 Sep 2013 18:08:41 +0000 (+0300) Subject: Simplifying code as requested by @ichernev X-Git-Tag: 2.3.0~51^2 X-Git-Url: http://git.ipfire.org/gitweb/?a=commitdiff_plain;h=refs%2Fpull%2F1072%2Fhead;p=thirdparty%2Fmoment.git Simplifying code as requested by @ichernev --- diff --git a/lang/ru.js b/lang/ru.js index b7ebc7f63..af7eab70e 100644 --- a/lang/ru.js +++ b/lang/ru.js @@ -127,11 +127,11 @@ // M. E.: those two are virtually unused but a user might want to implement them for his/her website for some reason meridiem : function (hour, minute, isLower) { - if (hour >= 0 && hour < 4) { + if (hour < 4) { return "ночи"; - } else if (hour >= 4 && hour < 12) { + } else if (hour < 12) { return "утра"; - } else if (hour >= 12 && hour < 17) { + } else if (hour < 17) { return "дня"; } else { return "вечера"; diff --git a/lang/uk.js b/lang/uk.js index 2a5bc8ca2..36bfeb17e 100644 --- a/lang/uk.js +++ b/lang/uk.js @@ -123,11 +123,11 @@ // M. E.: those two are virtually unused but a user might want to implement them for his/her website for some reason meridiem : function (hour, minute, isLower) { - if (hour >= 0 && hour < 4) { + if (hour < 4) { return "ночі"; - } else if (hour >= 4 && hour < 12) { + } else if (hour < 12) { return "ранку"; - } else if (hour >= 12 && hour < 17) { + } else if (hour < 17) { return "дня"; } else { return "вечора";