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

delete useless repeat code

This commit is contained in:
FengYa 2018-06-08 14:56:57 +08:00 committed by Chris Cummer
parent f542164dff
commit 0ec2259609

View File

@ -75,10 +75,6 @@ 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 {