fix strategy initialization

This commit is contained in:
narumi 2024-05-15 23:38:34 +08:00
parent 62e236edf1
commit 705261d2d4
4 changed files with 12 additions and 4 deletions

View File

@ -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
}

View File

@ -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
}

View File

@ -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
}

View File

@ -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
}