mirror of
https://github.com/c9s/bbgo.git
synced 2024-11-10 09:11:55 +00:00
trendtrader: fix converge lint issue
This commit is contained in:
parent
d5f8c3e756
commit
3521d42310
|
@ -2,6 +2,7 @@ package trendtrader
|
|||
|
||||
import (
|
||||
"context"
|
||||
|
||||
"github.com/c9s/bbgo/pkg/bbgo"
|
||||
"github.com/c9s/bbgo/pkg/fixedpoint"
|
||||
"github.com/c9s/bbgo/pkg/indicator"
|
||||
|
@ -149,8 +150,5 @@ func line(p1, p2, p3 float64) int64 {
|
|||
}
|
||||
|
||||
func converge(mr, ms float64) bool {
|
||||
if ms > mr {
|
||||
return true
|
||||
}
|
||||
return false
|
||||
return ms > mr
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user