mirror of
https://github.com/c9s/bbgo.git
synced 2024-09-20 08:11:08 +00:00
Merge pull request #1633 from c9s/narumi/fix-common-strategy-init
FIX: fix strategy initialization
This commit is contained in:
commit
ad6efaf449
|
@ -38,7 +38,9 @@ type Strategy struct {
|
|||
}
|
||||
|
||||
func (s *Strategy) Initialize() error {
|
||||
s.Strategy = &common.Strategy{}
|
||||
if s.Strategy == nil {
|
||||
s.Strategy = &common.Strategy{}
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
|
|
|
@ -42,7 +42,9 @@ func (s *Strategy) Defaults() error {
|
|||
}
|
||||
|
||||
func (s *Strategy) Initialize() error {
|
||||
s.Strategy = &common.Strategy{}
|
||||
if s.Strategy == nil {
|
||||
s.Strategy = &common.Strategy{}
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
|
|
|
@ -65,7 +65,9 @@ type Strategy struct {
|
|||
}
|
||||
|
||||
func (s *Strategy) Initialize() error {
|
||||
s.Strategy = &common.Strategy{}
|
||||
if s.Strategy == nil {
|
||||
s.Strategy = &common.Strategy{}
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
|
|
|
@ -55,7 +55,9 @@ func (s *Strategy) Defaults() error {
|
|||
}
|
||||
|
||||
func (s *Strategy) Initialize() error {
|
||||
s.Strategy = &common.Strategy{}
|
||||
if s.Strategy == nil {
|
||||
s.Strategy = &common.Strategy{}
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user