From ead36dd69cd26806108b29bcfaccaea41c9add15 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Menelion=20Elens=C3=BAle=20=28Andre=20Polykanine=29?= Date: Fri, 13 Sep 2013 21:08:41 +0300 Subject: [PATCH] Simplifying code as requested by @ichernev --- lang/ru.js | 6 +++--- lang/uk.js | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) 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 "вечора"; -- 2.47.2