miqbaldc
06/17/2021, 10:59 PMprivate fun AccountInfo?.isNotEmpty() = this != null &&
id.isNullOrBlank().not() &&
status.isNullOrBlank().not() &&
something.isNullOrBlank().not()
2️⃣
private fun AccountInfo?.isNotEmpty() = this != null
&& id.isNullOrBlank().not()
&& status.isNullOrBlank().not()
&& something.isNullOrBlank().not()
3️⃣ (linter will complain when exceeded the max length)
private fun AccountInfo?.isNotEmpty() = this != null && id.isNullOrBlank().not() && status.isNullOrBlank().not() && something.isNullOrBlank().not()
ephemient
06/18/2021, 12:03 AM!
instead of .not()
miqbaldc
06/18/2021, 6:27 AMktlint
, no. 1️⃣ will make ktlint
complaint 😞 and suggesting us to use 2️⃣ephemient
06/18/2021, 7:26 AMLine must not begin with "&&"
miqbaldc
06/18/2021, 8:07 AM