summaryrefslogtreecommitdiff
path: root/src/patch_generate.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/patch_generate.c')
-rw-r--r--src/patch_generate.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/patch_generate.c b/src/patch_generate.c
index 18256d076..6dd61c18f 100644
--- a/src/patch_generate.c
+++ b/src/patch_generate.c
@@ -209,9 +209,7 @@ static int patch_generated_load(git_patch_generated *patch, git_patch_generated_
if ((error = git_diff_file_content__load(
&patch->ofile, &patch->base.diff_opts)) < 0 ||
- should_skip_binary(patch, patch->ofile.file))
- goto cleanup;
- if ((error = git_diff_file_content__load(
+ (error = git_diff_file_content__load(
&patch->nfile, &patch->base.diff_opts)) < 0 ||
should_skip_binary(patch, patch->nfile.file))
goto cleanup;