mirror of
https://github.com/jesseduffield/lazygit.git
synced 2025-08-10 22:42:00 +02:00
Cleanup: use nil for empty slice
This commit is contained in:
@@ -136,8 +136,8 @@ func (self *BaseContext) AddMouseKeybindingsFn(fn types.MouseKeybindingsFn) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func (self *BaseContext) ClearAllBindingsFn() {
|
func (self *BaseContext) ClearAllBindingsFn() {
|
||||||
self.keybindingsFns = []types.KeybindingsFn{}
|
self.keybindingsFns = nil
|
||||||
self.mouseKeybindingsFns = []types.MouseKeybindingsFn{}
|
self.mouseKeybindingsFns = nil
|
||||||
}
|
}
|
||||||
|
|
||||||
func (self *BaseContext) AddOnClickFn(fn func() error) {
|
func (self *BaseContext) AddOnClickFn(fn func() error) {
|
||||||
|
Reference in New Issue
Block a user