diff options
Diffstat (limited to 'lineedit.go')
| -rw-r--r-- | lineedit.go | 4 |
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 |
