We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f6a804d commit a26cfeeCopy full SHA for a26cfee
socha-sdk/src/framework/sc/shared/InvalidMoveException.kt
@@ -6,4 +6,4 @@ import kotlin.RuntimeException
6
/** NOTE: It is important to have information about the move in the reason
7
* because that is the only place where the invalid move is logged */
8
class InvalidMoveException @JvmOverloads constructor(reason: String, @JvmField val move: IMove? = null):
9
- RuntimeException(reason + (if (move != null) "; move was $move" else ""))
+ RuntimeException(reason + move?.let { "; move was $it"}.orEmpty())
0 commit comments