Skip to content

Commit d0438b7

Browse files
committed
Cleanup: better receiver name
No need for this to be uppercase.
1 parent 98801da commit d0438b7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pkg/gui/types/keybindings.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,8 +43,8 @@ type Binding struct {
4343
GetDisabledReason func() *DisabledReason
4444
}
4545

46-
func (Binding *Binding) IsDisabled() bool {
47-
return Binding.GetDisabledReason != nil && Binding.GetDisabledReason() != nil
46+
func (b *Binding) IsDisabled() bool {
47+
return b.GetDisabledReason != nil && b.GetDisabledReason() != nil
4848
}
4949

5050
// A guard is a decorator which checks something before executing a handler

0 commit comments

Comments
 (0)