summaryrefslogtreecommitdiff
path: root/lineedit.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 /lineedit.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 'lineedit.go')
-rw-r--r--lineedit.go4
1 files changed, 2 insertions, 2 deletions
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