Commit 4467543e by Patrick Steinhardt

ignore: return early to avoid useless indentation

parent 9bd83622
......@@ -51,8 +51,9 @@ static int does_negate_pattern(git_attr_fnmatch *rule, git_attr_fnmatch *neg)
git_attr_fnmatch *longer, *shorter;
char *p;
if ((rule->flags & GIT_ATTR_FNMATCH_NEGATIVE) == 0
&& (neg->flags & GIT_ATTR_FNMATCH_NEGATIVE) != 0) {
if ((rule->flags & GIT_ATTR_FNMATCH_NEGATIVE) != 0
|| (neg->flags & GIT_ATTR_FNMATCH_NEGATIVE) == 0)
return false;
/* If lengths match we need to have an exact match */
if (rule->length == neg->length) {
......@@ -77,9 +78,6 @@ static int does_negate_pattern(git_attr_fnmatch *rule, git_attr_fnmatch *neg)
return false;
return memcmp(p, shorter->pattern, shorter->length) == 0;
}
return false;
}
/**
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment