mirror of
https://github.com/speatzle/nfsense.git
synced 2025-05-10 18:38:22 +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)
|
||||
}
|
||||
defer configFile.Close()
|
||||
if err != nil {
|
||||
fmt.Println(err.Error())
|
||||
}
|
||||
|
||||
jsonParser := json.NewDecoder(configFile)
|
||||
jsonParser.DisallowUnknownFields()
|
||||
err = jsonParser.Decode(&config)
|
||||
|
|
Loading…
Add table
Reference in a new issue