pkg/vm/stack: fix S1008 gosimple warning from GolangCI
S1008: should use 'return ' instead of 'if { return }; return ' (from gosimple)
This commit is contained in:
parent
bab187f4a8
commit
4e40467dc3
1 changed files with 1 additions and 4 deletions
|
@ -22,10 +22,7 @@ func NewInt(val *big.Int) (*Int, error) {
|
||||||
|
|
||||||
// Equal will check if two integers hold equal value
|
// Equal will check if two integers hold equal value
|
||||||
func (i *Int) Equal(s *Int) bool {
|
func (i *Int) Equal(s *Int) bool {
|
||||||
if i.val.Cmp(s.val) != 0 {
|
return i.val.Cmp(s.val) == 0
|
||||||
return false
|
|
||||||
}
|
|
||||||
return true
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// Add will add two stackIntegers together
|
// Add will add two stackIntegers together
|
||||||
|
|
Loading…
Reference in a new issue