avoid multiple returns on user repo update