Remove unnecessary year > currentYear check

This commit is contained in:
zykem
2025-04-28 23:56:31 +02:00
committed by GitHub
parent ad6c9a0930
commit 2ddb9e9fd2
+1 -1
View File
@@ -70,7 +70,7 @@ local function checkDOBFormat(dob)
local minYear = currentYear - Config.MaxAge
local maxYear = currentYear - 18
if year < minYear or year > maxYear or year > currentYear then
if year < minYear or year > maxYear then
return false
end