Skip to content

Commit b9e411e

Browse files
committed
refactor: do not inline Logger.runAndLogError
1 parent 3de07de commit b9e411e

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/main/kotlin/com/github/lppedd/cc/CCExtensions.kt

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -462,8 +462,7 @@ internal inline fun ListSelectionModel.selectedIndices(): IntArray {
462462
return rv
463463
}
464464

465-
@Suppress("SameParameterValue")
466-
internal inline fun <T> Logger.runAndLogError(defaultValue: T, block: () -> T): T {
465+
internal fun <T> Logger.runAndLogError(defaultValue: T, block: () -> T): T {
467466
contract {
468467
callsInPlace(block, InvocationKind.AT_MOST_ONCE)
469468
}

0 commit comments

Comments
 (0)