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:
parent
f542164dff
commit
0ec2259609
@ -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 {
|
||||
|
Loading…
x
Reference in New Issue
Block a user