summaryrefslogtreecommitdiff
path: root/checkbox.go
diff options
context:
space:
mode:
authorPietro Gagliardi <[email protected]>2014-02-15 13:36:24 -0500
committerPietro Gagliardi <[email protected]>2014-02-15 13:36:24 -0500
commitd1768f27873fe277cfe2513203424afdd2a84d5d (patch)
tree50070398090ae2e4150acb5bf5d2d31ffce08dab /checkbox.go
parentdce24dae3f4a737d66f13a12b2e09b37b4e7e3aa (diff)
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.
Diffstat (limited to 'checkbox.go')
-rw-r--r--checkbox.go6
1 files changed, 1 insertions, 5 deletions
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 {