Remove unneeded curly braces

master
Raymonzut 4 years ago
parent 7a23117328
commit 4b0f683901
No known key found for this signature in database
GPG Key ID: 1E9BCC39EDD1DD53
  1. 8
      client/public/lib/me.mjs

@ -4,14 +4,14 @@ export function age() {
let age = now.getFullYear() - birthdate.getFullYear() let age = now.getFullYear() - birthdate.getFullYear()
if (now.getMonth() < birthdate.getMonth()) { if (now.getMonth() < birthdate.getMonth())
age-- age--
}
if ( if (
birthdate.getMonth() === now.getMonth() && birthdate.getMonth() === now.getMonth() &&
now.getDate() < birthdate.getDate() now.getDate() < birthdate.getDate()
) { )
age-- age--
}
return age return age
} }

Loading…
Cancel
Save