1
0
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:
Stefan Haller
2025-07-28 14:47:38 +02:00
parent 98801da106
commit d0438b7d33

View File

@ -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