Skip to content

Commit 83d3c6e

Browse files
committed
Remove unused istransfer
1 parent 2f0122f commit 83d3c6e

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

app/src/main/java/to/bitkit/services/CoreService.kt

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -645,18 +645,16 @@ class ActivityService(
645645
}
646646

647647
var resolvedChannelId = channelId
648-
var isTransfer = existingOnchain?.isTransfer ?: false
649648

650649
// Check if this transaction is a channel transfer
651-
if (resolvedChannelId == null || !isTransfer) {
650+
if (resolvedChannelId == null) {
652651
val foundChannelId = findChannelForTransaction(
653652
txid = kind.txid,
654653
direction = payment.direction,
655654
transactionDetails = transactionDetails
656655
)
657656
if (foundChannelId != null) {
658657
resolvedChannelId = foundChannelId
659-
isTransfer = true
660658
}
661659
}
662660

0 commit comments

Comments
 (0)