Remove unnecessary code

This commit is contained in:
zykem
2025-04-28 23:58:04 +02:00
committed by GitHub
parent 2ddb9e9fd2
commit a91e17dee9
+1 -10
View File
@@ -70,16 +70,7 @@ local function checkDOBFormat(dob)
local minYear = currentYear - Config.MaxAge
local maxYear = currentYear - 18
if year < minYear or year > maxYear then
return false
end
if year == currentYear then
if month > currentDate.month or (month == currentDate.month and day > currentDate.day) then
return false
end
end
if year < minYear or year > maxYear then return false end
if month < 1 or month > 12 then return false end
-- Days in each month (starting from January.)