Is there a way to negate `?:` ? as to make asserte...
# getting-started
u
Is there a way to negate
?:
? as to make assertedNoCall oneliner?
Copy code
private fun assertedCall(): SipCall {
        return this.call ?: throw IllegalStateException("Call is null")
    }

    private fun assertedNoCall() {
        val call = this.call
        if (call != null) throw IllegalStateException("Call is not null")
    }