LibRegex: Remove duplicated condition

This commit is contained in:
Pavel Shliak 2024-12-20 02:35:09 +04:00 committed by Andreas Kling
commit 811d5a5c3e
Notes: github-actions[bot] 2024-12-22 11:34:54 +00:00

View file

@ -726,7 +726,7 @@ ALWAYS_INLINE bool PosixExtendedParser::parse_sub_expression(ByteCode& stack, si
if (length > 1) {
// last character is inserted into 'bytecode' for duplication symbol handling
auto new_length = length - ((match_repetition_symbol() && length > 1) ? 1 : 0);
auto new_length = length - (match_repetition_symbol() ? 1 : 0);
stack.insert_bytecode_compare_string({ start_token.value().characters_without_null_termination(), new_length });
}