tidy error on json unmarshal

This commit is contained in:
JimZAH 2023-08-10 08:00:10 +01:00
parent 7ab3a129ab
commit 435c74edaf

View File

@ -107,8 +107,7 @@ func nameLookup(config *Config) {
if err != nil {
return
}
err = json.Unmarshal(body, &monitor.Users)
if err != nil {
if err := json.Unmarshal(body, &monitor.Users); err != nil {
fmt.Println(err)
}