summaryrefslogtreecommitdiff
path: root/label.go
diff options
context:
space:
mode:
Diffstat (limited to 'label.go')
-rw-r--r--label.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/label.go b/label.go
index be19949..6b91f75 100644
--- a/label.go
+++ b/label.go
@@ -22,15 +22,15 @@ func NewLabel(text string) *Label {
}
// SetText sets the Label's text.
-func (l *Label) SetText(text string) (err error) {
+func (l *Label) SetText(text string) {
l.lock.Lock()
defer l.lock.Unlock()
if l.created {
- return l.sysData.setText(text)
+ l.sysData.setText(text)
+ return
}
l.initText = text
- return nil
}
// Text returns the Label's text.