remove unnecessary if statement

This commit is contained in:
jding 2021-10-30 00:25:08 +00:00
parent 14f2b6e6ff
commit 63776e36b5

View file

@ -413,8 +413,6 @@ static void decide_hold_tap(struct active_hold_tap *hold_tap, enum decision_mome
return; return;
} }
// If the hold-tap behavior is still undecided, attempt to decide it.
if (hold_tap->status == STATUS_UNDECIDED) {
switch (hold_tap->config->flavor) { switch (hold_tap->config->flavor) {
case FLAVOR_HOLD_PREFERRED: case FLAVOR_HOLD_PREFERRED:
decide_hold_preferred(hold_tap, decision_moment); decide_hold_preferred(hold_tap, decision_moment);
@ -425,7 +423,6 @@ static void decide_hold_tap(struct active_hold_tap *hold_tap, enum decision_mome
case FLAVOR_TAP_POSITIONALLY_PREFERRED: case FLAVOR_TAP_POSITIONALLY_PREFERRED:
decide_tap_positionally_preferred(hold_tap, decision_moment, other_key_down_pos); decide_tap_positionally_preferred(hold_tap, decision_moment, other_key_down_pos);
} }
}
if (hold_tap->status == STATUS_UNDECIDED) { if (hold_tap->status == STATUS_UNDECIDED) {
return; return;