This commit is contained in:
lash
2025-01-21 15:59:44 +00:00
parent ba8cbbccea
commit 9fbae0471f
5 changed files with 9 additions and 9 deletions

View File

@@ -39,8 +39,7 @@ func CalculateAgeWithYOB(yob int) int {
return currentYear - yob
}
//IsValidYob checks if the provided yob can be considered valid
// IsValidYob checks if the provided yob can be considered valid
func IsValidYOb(yob string) bool {
currentYear := time.Now().Year()
yearOfBirth, err := strconv.ParseInt(yob, 10, 64)