1
0
mirror of https://github.com/taigrr/wtf synced 2025-01-18 04:03:14 -08:00

removed duplicate condition

This commit is contained in:
Hossein Mehrabi 2018-06-08 11:26:19 +04:30
parent 46978fdc8a
commit f912d64279

View File

@ -73,10 +73,7 @@ func (widget *Widget) ipinfo() {
return
}
defer response.Body.Close()
if err != nil {
widget.result = fmt.Sprintf("%s", err.Error())
return
}
var info ipinfo
err = json.NewDecoder(response.Body).Decode(&info)
if err != nil {