<p>I love Kotlin but your OP makes me cringe hard.</p>
<p>You suggest to replace</p>
<pre><code>if (a) return X
else if (b) return Y
else return Z
</code></pre>
<p>with</p>
<pre><code>return if (a) X else if (b) Y else Z
</code></pre>
<p>which is ugly as hell. Maybe you want to edit that to:</p>
<blockquote>
<p>for example in <a class="issue-link js-issue-link" data-error-text="Failed to load issue title" data-id="329785694" data-permission-text="Issue title is private" data-url="https://github.com/bisq-network/style/issues/12" data-hovercard-type="issue" data-hovercard-url="/bisq-network/style/issues/12/hovercard" href="https://github.com/bisq-network/style/issues/12">bisq-network/style#12</a> instead of</p>
<pre><code>int getSomeValue(@Nonnull Boolean isA, Float b) {
    if (isA) {
        return 1
    } else if (b != null && b > 5) {
        return 2
    } else {
        return 3
    }
}
</code></pre>
<p>you can just write</p>
<pre><code>fun getSomeValue(isA: Boolean, b: Float?) = when {
    isA -> 1
    (b ?: 0f) > 5 -> 2
    else -> 3
}
</code></pre>
</blockquote>
<p>as slamming all in one line is not helpful for readability and thus for security and also <code>{{}}</code> are very important by my estimates for the <code>if</code> statements to avoid additional expressions to slip out of a context.</p>

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br />You are receiving this because you are subscribed to this thread.<br />Reply to this email directly, <a href="https://github.com/bisq-network/bisq/issues/3026?email_source=notifications&email_token=AJFFTNURM3QQ3A27A7X5AA3QG4V2RA5CNFSM4IHSA6FKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD5M752A#issuecomment-525991656">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/AJFFTNXZYZJOOOV6KGWV4U3QG4V2RANCNFSM4IHSA6FA">mute the thread</a>.<img src="https://github.com/notifications/beacon/AJFFTNTUXACZA64ZPRXR3ILQG4V2RA5CNFSM4IHSA6FKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD5M752A.gif" height="1" width="1" alt="" /></p>
<script type="application/ld+json">[
{
"@context": "http://schema.org",
"@type": "EmailMessage",
"potentialAction": {
"@type": "ViewAction",
"target": "https://github.com/bisq-network/bisq/issues/3026?email_source=notifications\u0026email_token=AJFFTNURM3QQ3A27A7X5AA3QG4V2RA5CNFSM4IHSA6FKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD5M752A#issuecomment-525991656",
"url": "https://github.com/bisq-network/bisq/issues/3026?email_source=notifications\u0026email_token=AJFFTNURM3QQ3A27A7X5AA3QG4V2RA5CNFSM4IHSA6FKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD5M752A#issuecomment-525991656",
"name": "View Issue"
},
"description": "View this Issue on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>