mirror of
https://github.com/taigrr/wtf
synced 2025-01-18 04:03:14 -08:00
Use errcheck to find unhandled errors (#795)
Signed-off-by: Chris Cummer <chriscummer@me.com>
This commit is contained in:
@@ -68,7 +68,9 @@ func (widget *Widget) Refresh(wg *sync.WaitGroup) {
|
||||
|
||||
func (widget *Widget) updateData() {
|
||||
defer func() {
|
||||
recover()
|
||||
if r := recover(); r != nil {
|
||||
fmt.Println("recovered in updateSummary()", r)
|
||||
}
|
||||
}()
|
||||
|
||||
client := &http.Client{
|
||||
|
||||
Reference in New Issue
Block a user