(scan_diff): eliminate 'continue', use 'else' instead.

This commit is contained in:
Andrew Borodin 2023-09-02 12:29:38 +03:00
parent c2e7bb9336
commit 6a10d8e932

View File

@ -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;