From a87f9699ed464d8e77f6977b292bc76e84c6ad12 Mon Sep 17 00:00:00 2001
From: Theodoros Katzalis <thodkatz@gmail.com>
Date: Sun, 17 Mar 2019 18:22:26 +0200
Subject: [PATCH] Remove an unecessary conditional

---
 src/Helpers/TimeAndDate.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/Helpers/TimeAndDate.cpp b/src/Helpers/TimeAndDate.cpp
index 48584eaa..f13e0af7 100644
--- a/src/Helpers/TimeAndDate.cpp
+++ b/src/Helpers/TimeAndDate.cpp
@@ -16,7 +16,7 @@ TimeAndDate::TimeAndDate(uint16_t year, uint8_t month, uint8_t day, uint8_t hour
 	// check if the parameters makes sense
 
 	// @todo change the condition of the assertion for the \p year
-	assertI(2019 <= year && year <= 2025, ErrorHandler::InternalErrorType::InvalidDate);
+	assertI(2019 <= year, ErrorHandler::InternalErrorType::InvalidDate);
 	assertI(1 <= month && month <= 12, ErrorHandler::InternalErrorType::InvalidDate);
 	assertI(1 <= day && month <= 31, ErrorHandler::InternalErrorType::InvalidDate);
 	assertI(0 <= hour && hour <= 24, ErrorHandler::InternalErrorType::InvalidDate);
-- 
GitLab