Fixing a golint error.

This commit is contained in:
Jakub Sobon 2020-11-28 14:16:36 -05:00
parent 9da89424ee
commit 79f696a100
No known key found for this signature in database
GPG Key ID: F2451A77FB05D3B7
1 changed files with 1 additions and 2 deletions

View File

@ -316,9 +316,8 @@ func (b *Button) Mouse(m *terminalapi.Mouse, meta *widgetapi.EventMeta) error {
func (b *Button) shadowWidth() int {
if b.opts.disableShadow {
return 0
} else {
return 1
}
return 1
}
// Options implements widgetapi.Widget.Options.