Revert "Fixed loadFromJsonCfg method for SessionSCfg"

This reverts commit c0b4afb8a4.
This commit is contained in:
Trial97
2020-04-30 12:19:45 +03:00
committed by Dan Christian Bogos
parent dc95af8408
commit 95ee9861ff

View File

@@ -288,13 +288,7 @@ func (scfg *SessionSCfg) loadFromJsonCfg(jsnCfg *SessionSJsonCfg) (err error) {
}
}
}
if jsnCfg.Stir != nil {
scfg.STIRCfg = new(STIRcfg)
if err := scfg.STIRCfg.loadFromJSONCfg(jsnCfg.Stir); err != nil {
return err
}
}
return nil
return scfg.STIRCfg.loadFromJSONCfg(jsnCfg.Stir)
}
func (scfg *SessionSCfg) AsMapInterface() map[string]interface{} {