mirror of
https://github.com/jesseduffield/lazygit.git
synced 2025-08-06 22:33:07 +02:00
Cleanup: better receiver name
No need for this to be uppercase.
This commit is contained in:
@ -43,8 +43,8 @@ type Binding struct {
|
|||||||
GetDisabledReason func() *DisabledReason
|
GetDisabledReason func() *DisabledReason
|
||||||
}
|
}
|
||||||
|
|
||||||
func (Binding *Binding) IsDisabled() bool {
|
func (b *Binding) IsDisabled() bool {
|
||||||
return Binding.GetDisabledReason != nil && Binding.GetDisabledReason() != nil
|
return b.GetDisabledReason != nil && b.GetDisabledReason() != nil
|
||||||
}
|
}
|
||||||
|
|
||||||
// A guard is a decorator which checks something before executing a handler
|
// A guard is a decorator which checks something before executing a handler
|
||||||
|
Reference in New Issue
Block a user