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. --- combobox.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'combobox.go') 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 -- cgit v1.2.3