1
0
mirror of https://github.com/jesseduffield/lazygit.git synced 2025-08-06 22:33:07 +02:00

Cleanup: use nil for empty slice

This commit is contained in:
Stefan Haller
2025-07-10 19:57:47 +02:00
parent b3ca944c9e
commit 9c5c459faa

View File

@ -136,8 +136,8 @@ func (self *BaseContext) AddMouseKeybindingsFn(fn types.MouseKeybindingsFn) {
}
func (self *BaseContext) ClearAllBindingsFn() {
self.keybindingsFns = []types.KeybindingsFn{}
self.mouseKeybindingsFns = []types.MouseKeybindingsFn{}
self.keybindingsFns = nil
self.mouseKeybindingsFns = nil
}
func (self *BaseContext) AddOnClickFn(fn func() error) {