Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
  • Loading branch information
oliviasaa authored Oct 16, 2023
1 parent 175fb4e commit a6c8e40
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions mana_decay_provider.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
package iotago

import (
"fmt"
"math"

"github.com/iotaledger/hive.go/core/safemath"
Expand Down Expand Up @@ -207,9 +206,7 @@ func (p *ManaDecayProvider) ManaGenerationWithDecay(amount BaseToken, creationSl
if err != nil {
return 0, err
}
printVar, _ := safemath.SafeAdd(result, potentialMana_n)
//nolint:golint,revive,nosnakecase,stylecheck // taken from the formula, lets keep it that way
fmt.Println(p.LowerBoundPotentialMana(amount, creationSlot, targetSlot), printVar, p.UpperBoundPotentialMana(amount, creationSlot, targetSlot))
return safemath.SafeAdd(result, potentialMana_n)
}
}
Expand Down

0 comments on commit a6c8e40

Please sign in to comment.