BUGFIX : getJailConfig returns 2 values

This commit is contained in:
yo 2022-04-18 13:37:40 +02:00
parent f9ce3601df
commit 6821b14407

View File

@ -221,7 +221,7 @@ func getJailConfig(jailConfigPath string) (JailConfig, error) {
// Mandatory constructor to init default values // Mandatory constructor to init default values
jc, err := NewJailConfig() jc, err := NewJailConfig()
if err != nil { if err != nil {
return err return jc, err
} }
err = json.Unmarshal([]byte(content), &jc) err = json.Unmarshal([]byte(content), &jc)
if err != nil { log.Fatalln(fmt.Sprintf("Error occured during unmarshaling %s: %s", jailConfigPath, err.Error())) } if err != nil { log.Fatalln(fmt.Sprintf("Error occured during unmarshaling %s: %s", jailConfigPath, err.Error())) }