mirror of
https://github.com/MidnightCommander/mc
synced 2024-12-22 20:36:50 +03:00
(scan_diff): eliminate 'continue', use 'else' instead.
This commit is contained in:
parent
c2e7bb9336
commit
6a10d8e932
@ -781,12 +781,10 @@ scan_diff (FBUF * f, GArray * ops)
|
|||||||
buf[sz] = '\0';
|
buf[sz] = '\0';
|
||||||
if (scan_line (buf, ops) != 0)
|
if (scan_line (buf, ops) != 0)
|
||||||
return -1;
|
return -1;
|
||||||
|
|
||||||
continue;
|
|
||||||
}
|
}
|
||||||
|
else
|
||||||
while (buf[sz - 1] != '\n' && (sz = dview_fgets (buf, sizeof (buf), f)) != 0)
|
while (buf[sz - 1] != '\n' && (sz = dview_fgets (buf, sizeof (buf), f)) != 0)
|
||||||
;
|
;
|
||||||
}
|
}
|
||||||
|
|
||||||
return ops->len;
|
return ops->len;
|
||||||
|
Loading…
Reference in New Issue
Block a user