delta: check if a prefix needs to be skipped only once
The condition is already tested later by process_fix() therefore there's no need the check in process_suffix_chop() since it will end up calling process_fix() anyways.
This commit is contained in:
@@ -520,13 +520,6 @@ static int process_suffix_chop(const char *arg) {
|
||||
/* Strip prefix from the suffix */
|
||||
NULSTR_FOREACH(p, prefixes) {
|
||||
const char *suffix;
|
||||
int skip;
|
||||
|
||||
skip = should_skip_prefix(p);
|
||||
if (skip < 0)
|
||||
return skip;
|
||||
if (skip)
|
||||
continue;
|
||||
|
||||
suffix = startswith(arg, p);
|
||||
if (suffix) {
|
||||
|
||||
Reference in New Issue
Block a user