dirk.dittert
06/06/2016, 9:47 PMsubscription?.isUnsubscribed?.let {
// code
}
subscription?.let { subscription ->
if (subscription.isUnsubscribed) {
// things
}
}
It is debatable if the second version is nicer that the if-statement.