mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-06-02 11:09:38 +02:00
lnwallet: fix linter errors introduced by updateLog move
This commit is contained in:
parent
51060aed45
commit
3e7866d85c
@ -101,6 +101,7 @@ func (u *updateLog) lookupHtlc(i uint64) *PaymentDescriptor {
|
|||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
|
//nolint:forcetypeassert
|
||||||
return htlc.Value.(*PaymentDescriptor)
|
return htlc.Value.(*PaymentDescriptor)
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -164,6 +165,7 @@ func compactLogs(ourLog, theirLog *updateLog,
|
|||||||
// chain, the skip it.
|
// chain, the skip it.
|
||||||
if htlc.removeCommitHeightRemote == 0 ||
|
if htlc.removeCommitHeightRemote == 0 ||
|
||||||
htlc.removeCommitHeightLocal == 0 {
|
htlc.removeCommitHeightLocal == 0 {
|
||||||
|
|
||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -187,7 +189,6 @@ func compactLogs(ourLog, theirLog *updateLog,
|
|||||||
logA.removeUpdate(htlc.LogIndex)
|
logA.removeUpdate(htlc.LogIndex)
|
||||||
logB.removeHtlc(htlc.ParentIndex)
|
logB.removeHtlc(htlc.ParentIndex)
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user