summaryrefslogtreecommitdiff
path: root/combobox.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 /combobox.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 'combobox.go')
-rw-r--r--combobox.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/combobox.go b/combobox.go
index e018cce..9b38fa3 100644
--- a/combobox.go
+++ b/combobox.go
@@ -29,14 +29,14 @@ func NewCombobox(editable bool, items ...string) (c *Combobox) {
// TODO Append, InsertBefore, Delete
// Selection returns the current selection.
-func (c *Combobox) Selection() (string, error) {
+func (c *Combobox) Selection() string {
c.lock.Lock()
defer c.lock.Unlock()
if c.created {
return c.sysData.text()
}
- return "", nil
+ return ""
}
// TODO SelectedIndex