Consider using with (user.address) { ... }
instead of `val {street, city, state} = user.address`. It requires less typing and you will not have to violate DRY principle.
Consider using with (user.address) { ... }
instead of `val {street, city, state} = user.address`. It requires less typing and you will not have to violate DRY principle.