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

Merge pull request #188 from jeangovil/ipinfo-useless-condition

removed duplicate condition
This commit is contained in:
Chris Cummer 2018-06-08 10:13:29 -07:00 committed by GitHub
commit e551a2530c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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