344 B
344 B
value.?let or if (value != null)
Is really better to use
value?.let {
// some block
}
then
if (value != null) {
// some block
}
There is no return value so block is NOT expression.
Don't use anonymous class implementation
val value = object : Type {
// implementation
}