multi: remove gomnd disable directives

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

No files matched your search

+1 -2
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
}
+1 -1
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 {
+1 -1
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 {