mirror of
https://github.com/c9s/bbgo.git
synced 2024-11-25 16:25:16 +00:00
Merge pull request #661 from c9s/fix/persistence-snapshot
fix: drop IsZero
This commit is contained in:
commit
5eec6180bb
|
@ -92,10 +92,6 @@ func iterateFieldsByTag(obj interface{}, tagName string, cb StructFieldIterator)
|
|||
sv := reflect.ValueOf(obj)
|
||||
st := reflect.TypeOf(obj)
|
||||
|
||||
if sv.IsZero() {
|
||||
return nil
|
||||
}
|
||||
|
||||
if st.Kind() != reflect.Ptr {
|
||||
return fmt.Errorf("f needs to be a pointer of a struct, %s given", st)
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user