So use 3 (I think you can even reuse the name) or try
user?.let { ... }
a
anemo
06/04/2018, 4:50 PM
had thought about this one, but this works when you have only a single property. If there are multiple properties working with each others, this is not an option.