1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 14:17:36 +00:00

LibRegex: Remove some else-after-returns

This commit is contained in:
Hendiadyoin1 2021-12-21 17:54:45 +01:00 committed by Brian Gianforcaro
parent b674de6957
commit a2563496f5
4 changed files with 44 additions and 44 deletions

View file

@ -272,12 +272,12 @@ RegexResult Matcher<Parser>::match(Vector<RegexStringView> const& views, Optiona
bool has_zero_length = state.string_position == view_index;
view_index = state.string_position - (has_zero_length ? 0 : 1);
continue;
} else if (input.regex_options.has_flag_set(AllFlags::Internal_Stateful)) {
}
if (input.regex_options.has_flag_set(AllFlags::Internal_Stateful)) {
append_match(input, state, view_index);
break;
} else if (state.string_position < view_length) {
}
if (state.string_position < view_length) {
return { false, 0, {}, {}, {}, operations };
}