summaryrefslogtreecommitdiff
path: root/sysdata_unix.go
diff options
context:
space:
mode:
Diffstat (limited to 'sysdata_unix.go')
-rw-r--r--sysdata_unix.go9
1 files changed, 3 insertions, 6 deletions
diff --git a/sysdata_unix.go b/sysdata_unix.go
index 38e589c..a910df7 100644
--- a/sysdata_unix.go
+++ b/sysdata_unix.go
@@ -4,7 +4,7 @@
package ui
import (
- "fmt"
+ // ...
)
type sysData struct {
@@ -150,10 +150,7 @@ func (s *sysData) make(initText string, window *sysData) error {
}
<-ret
}
- err := s.setText(initText)
- if err != nil {
- return fmt.Errorf("error setting initial text of new window/control: %v", err)
- }
+ s.setText(initText)
return nil
}
@@ -185,7 +182,7 @@ func (s *sysData) hide() {
func (s *sysData) setText(text string) {
if classTypes[s.ctype].setText == nil { // does not have concept of text
- return nil
+ return
}
ret := make(chan struct{})
defer close(ret)