mirror of
https://github.com/neovim/neovim.git
synced 2025-02-25 18:55:25 -06:00
PVS/V547: diff.c: Expression is always true
This commit is contained in:
parent
8586770e1f
commit
a1e97b18f1
@ -1565,7 +1565,8 @@ static void diff_read(int idx_orig, int idx_new, diffout_T *dout)
|
|||||||
&lnum_new, &count_new) == FAIL) {
|
&lnum_new, &count_new) == FAIL) {
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
} else if (diffstyle == DIFF_UNIFIED) {
|
} else {
|
||||||
|
assert(diffstyle == DIFF_UNIFIED);
|
||||||
if (STRNCMP(line, "@@ ", 3) != 0) {
|
if (STRNCMP(line, "@@ ", 3) != 0) {
|
||||||
continue; // not the start of a diff block
|
continue; // not the start of a diff block
|
||||||
}
|
}
|
||||||
@ -1573,9 +1574,6 @@ static void diff_read(int idx_orig, int idx_new, diffout_T *dout)
|
|||||||
&lnum_new, &count_new) == FAIL) {
|
&lnum_new, &count_new) == FAIL) {
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
} else {
|
|
||||||
EMSG(_("E959: Invalid diff format."));
|
|
||||||
break;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// Go over blocks before the change, for which orig and new are equal.
|
// Go over blocks before the change, for which orig and new are equal.
|
||||||
|
Loading…
Reference in New Issue
Block a user