summaryrefslogtreecommitdiff
path: root/progressbar.go
diff options
context:
space:
mode:
Diffstat (limited to 'progressbar.go')
-rw-r--r--progressbar.go5
1 files changed, 2 insertions, 3 deletions
diff --git a/progressbar.go b/progressbar.go
index 4d41b28..4d80c94 100644
--- a/progressbar.go
+++ b/progressbar.go
@@ -56,10 +56,9 @@ func (p *ProgressBar) setRect(x int, y int, width int, height int, winheight int
return p.sysData.setRect(x, y, width, height, winheight)
}
-func (p *ProgressBar) preferredSize() (width int, height int, err error) {
+func (p *ProgressBar) preferredSize() (width int, height int) {
p.lock.Lock()
defer p.lock.Unlock()
- width, height = p.sysData.preferredSize()
- return
+ return p.sysData.preferredSize()
}