Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
Remove unneeded breaks.

Co-authored-by: Nick Brassel <nick@tzarc.org>
  • Loading branch information
josefadamcik and tzarc committed May 18, 2020
1 parent 2f5521c commit 2a43989
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions keyboards/sofle/keymaps/default/keymap.c
Original file line number Diff line number Diff line change
Expand Up @@ -231,7 +231,6 @@ bool process_record_user(uint16_t keycode, keyrecord_t *record) {
update_tri_layer(_LOWER, _RAISE, _ADJUST);
}
return false;
break;
case KC_RAISE:
if (record->event.pressed) {
layer_on(_RAISE);
Expand All @@ -241,15 +240,13 @@ bool process_record_user(uint16_t keycode, keyrecord_t *record) {
update_tri_layer(_LOWER, _RAISE, _ADJUST);
}
return false;
break;
case KC_ADJUST:
if (record->event.pressed) {
layer_on(_ADJUST);
} else {
layer_off(_ADJUST);
}
return false;
break;
case KC_PRVWD:
if (record->event.pressed) {
if (keymap_config.swap_lctl_lgui) {
Expand Down Expand Up @@ -372,7 +369,6 @@ bool process_record_user(uint16_t keycode, keyrecord_t *record) {
unregister_code(KC_Z);
}
return false;
break;
}
return true;
}
Expand Down

0 comments on commit 2a43989

Please sign in to comment.