mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-09-01 18:27:43 +02:00
multi: remove gomnd disable directives
This commit is contained in:
@@ -148,9 +148,8 @@ func migrateAckedUpdates(db kvdb.Backend, sessionsPerTx int) error {
|
||||
|
||||
// Calculate and log the progress if the progress is less than
|
||||
// one hundred percent.
|
||||
//nolint:gomnd
|
||||
progress := float64(migrated) / float64(total) * 100
|
||||
if progress >= 100 { //nolint:gomnd
|
||||
if progress >= 100 {
|
||||
break
|
||||
}
|
||||
|
||||
|
@@ -208,7 +208,7 @@ func (a *RangeIndex) lowerBoundIndex(n uint64) (int, bool) {
|
||||
rangeIndex = -1
|
||||
)
|
||||
for {
|
||||
mid := (low + high) / 2 //nolint: gomnd
|
||||
mid := (low + high) / 2
|
||||
currentRange := a.set[mid]
|
||||
|
||||
switch {
|
||||
|
@@ -208,7 +208,7 @@ func (a *RangeIndex) lowerBoundIndex(n uint64) (int, bool) {
|
||||
rangeIndex = -1
|
||||
)
|
||||
for {
|
||||
mid := (low + high) / 2 //nolint: gomnd
|
||||
mid := (low + high) / 2
|
||||
currentRange := a.set[mid]
|
||||
|
||||
switch {
|
||||
|
Reference in New Issue
Block a user