fix(keymap): add brackets around if statement body
This commit is contained in:
parent
bb4f45a57a
commit
50643b2c56
1 changed files with 3 additions and 1 deletions
|
@ -94,7 +94,9 @@ int zmk_keymap_layer_deactivate(u8_t layer)
|
||||||
int zmk_keymap_layer_toggle(u8_t layer)
|
int zmk_keymap_layer_toggle(u8_t layer)
|
||||||
{
|
{
|
||||||
if (zmk_keymap_layer_active(layer))
|
if (zmk_keymap_layer_active(layer))
|
||||||
return zmk_keymap_layer_deactivate(layer);
|
{
|
||||||
|
return zmk_keymap_layer_deactivate(layer);
|
||||||
|
}
|
||||||
|
|
||||||
return zmk_keymap_layer_activate(layer);
|
return zmk_keymap_layer_activate(layer);
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in a new issue