fix(keymap): add brackets around if statement body

This commit is contained in:
Cody McGinnis 2020-08-18 14:21:39 -04:00
parent bb4f45a57a
commit 50643b2c56

View file

@ -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);
}; };