Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit bc81220

Browse files
committed
minor cleanups
1 parent 947a58c commit bc81220

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/diff_print.c

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -298,15 +298,15 @@ static int print_binary_hunk(diff_print_info *pi, git_blob *old, git_blob *new)
298298
old_data_len = old ? git_blob_rawsize(old) : 0;
299299
new_data_len = new ? git_blob_rawsize(new) : 0;
300300

301-
if (!git__is_ulong(old_data_len) || !git__is_ulong(new_data_len)) {
302-
error = GIT_EBUFS;
303-
goto done;
304-
}
301+
/* The git_delta function accepts unsigned long only */
302+
if (!git__is_ulong(old_data_len) || !git__is_ulong(new_data_len))
303+
return GIT_EBUFS;
305304

306305
out = &deflate;
307306
inflated_len = (unsigned long)new_data_len;
308307

309-
if ((error = git_zstream_deflatebuf(out, new_data, (size_t)new_data_len)) < 0)
308+
if ((error = git_zstream_deflatebuf(
309+
out, new_data, (size_t)new_data_len)) < 0)
310310
goto done;
311311

312312
/* The git_delta function accepts unsigned long only */

0 commit comments

Comments
 (0)