This prevents a runtime error in when a Hydra is defined that only has heads where exit = true which causes layer_keymaps to be nil. Further on in hydra/layer/init layer_keymaps is assumed to be non-nil.
Reproducing is pretty simple. You can try creating a Hydra like this and it should error without my fix:
I've not run into this issue specifically but I did test your branch out and I am not seeing any issues with it. Your code change is super minimal so I think its probably fine :)
This prevents a runtime error in when a Hydra is defined that only has heads where
exit = true
which causeslayer_keymaps
to be nil. Further on in hydra/layer/initlayer_keymaps
is assumed to be non-nil.Reproducing is pretty simple. You can try creating a Hydra like this and it should error without my fix: