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:
Franck Bui
2017-12-04 12:40:46 +01:00
parent fc11a1a204
commit 7ddc01a5e0
-7
View File
@@ -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) {