From ce571bad52589008b8efe6cc0a6e3f76c7f88856 Mon Sep 17 00:00:00 2001 From: Pietro Gagliardi Date: Sun, 9 Mar 2014 19:44:41 -0400 Subject: Removed error returns from Control.preferredSize() since errors are not going to be returned anymore. --- progressbar.go | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'progressbar.go') 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() } -- cgit v1.2.3