multi: remove gomnd disable directives

This commit is contained in:
Oliver Gugger
2023-01-17 19:43:26 +01:00
parent a306cbdec9
commit d960fcd68a
6 changed files with 8 additions and 10 deletions

View File

@@ -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
}

View File

@@ -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 {

View File

@@ -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 {