From d1768f27873fe277cfe2513203424afdd2a84d5d Mon Sep 17 00:00:00 2001 From: Pietro Gagliardi Date: Sat, 15 Feb 2014 13:36:24 -0500 Subject: Reduced the number of unnecessary error returns based on MSDN. The TODOs that used to be there have been moved to a new file; similar files for Mac and Linux will also be made. --- checkbox.go | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'checkbox.go') diff --git a/checkbox.go b/checkbox.go index dc148e2..9a83852 100644 --- a/checkbox.go +++ b/checkbox.go @@ -42,11 +42,7 @@ func (c *Checkbox) Checked() bool { c.lock.Lock() defer c.lock.Unlock() - check, err := c.sysData.isChecked() - if err != nil { - panic(err) // TODO - } - return check + return c.sysData.isChecked() } func (c *Checkbox) make(window *sysData) error { -- cgit v1.2.3