Skip to content

Commit d0a4b4e

Browse files
committed
refactor: convert toTxType to block body
1 parent 07cf0e7 commit d0a4b4e

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

app/src/main/java/to/bitkit/models/NewTransactionSheetDetails.kt

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -63,10 +63,12 @@ enum class NewTransactionSheetDirection {
6363
SENT, RECEIVED
6464
}
6565

66-
fun NewTransactionSheetDirection.toTxType(): PaymentType = if (this == NewTransactionSheetDirection.SENT) {
67-
PaymentType.SENT
68-
} else {
69-
PaymentType.RECEIVED
66+
fun NewTransactionSheetDirection.toTxType(): PaymentType {
67+
return if (this == NewTransactionSheetDirection.SENT) {
68+
PaymentType.SENT
69+
} else {
70+
PaymentType.RECEIVED
71+
}
7072
}
7173

7274
fun NewTransactionSheetType.toActivityFilter(): ActivityFilter {

0 commit comments

Comments
 (0)