mirror of
https://github.com/speatzle/nfsense.git
synced 2025-05-11 02:48:21 +00:00
remove unnessesary error log
This commit is contained in:
parent
f935fac523
commit
a04127c0e6
1 changed files with 1 additions and 3 deletions
|
@ -15,9 +15,7 @@ func LoadConfiguration(file string) (*definitions.Config, error) {
|
||||||
return nil, fmt.Errorf("opening Config File %w", err)
|
return nil, fmt.Errorf("opening Config File %w", err)
|
||||||
}
|
}
|
||||||
defer configFile.Close()
|
defer configFile.Close()
|
||||||
if err != nil {
|
|
||||||
fmt.Println(err.Error())
|
|
||||||
}
|
|
||||||
jsonParser := json.NewDecoder(configFile)
|
jsonParser := json.NewDecoder(configFile)
|
||||||
jsonParser.DisallowUnknownFields()
|
jsonParser.DisallowUnknownFields()
|
||||||
err = jsonParser.Decode(&config)
|
err = jsonParser.Decode(&config)
|
||||||
|
|
Loading…
Add table
Reference in a new issue