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. --- lineedit.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lineedit.go') diff --git a/lineedit.go b/lineedit.go index 9c5b25d..9c839c5 100644 --- a/lineedit.go +++ b/lineedit.go @@ -27,14 +27,14 @@ func NewLineEdit(text string) *LineEdit { // TODO SetText // Text returns the LineEdit's text. -func (l *LineEdit) Text() (string, error) { +func (l *LineEdit) Text() string { l.lock.Lock() defer l.lock.Unlock() if l.created { return l.sysData.text() } - return l.initText, nil + return l.initText } // TODO adorn errors with what failed -- cgit v1.2.3