mirror of
https://github.com/taigrr/wtf
synced 2025-01-18 04:03:14 -08:00
removed duplicate condition
This commit is contained in:
parent
46978fdc8a
commit
f912d64279
@ -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 {
|
||||
|
Loading…
x
Reference in New Issue
Block a user