mirror of
https://github.com/taigrr/wtf
synced 2026-03-22 07:42:18 -07:00
delete useless repeat code
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user