builtin/checkout.c: use "ret" variable for return
There is no point in doing this right now, but in later change the "ret" variable will be inspected. This change makes that meaningful change smaller. Signed-off-by: Ævar Arnfjörð Bjarmason <avarab@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>maint
parent
3c87aa946a
commit
1c550553c5
|
@ -1265,8 +1265,10 @@ int cmd_checkout(int argc, const char **argv, const char *prefix)
|
|||
}
|
||||
|
||||
UNLEAK(opts);
|
||||
if (opts.patch_mode || opts.pathspec.nr)
|
||||
return checkout_paths(&opts, new_branch_info.name);
|
||||
else
|
||||
if (opts.patch_mode || opts.pathspec.nr) {
|
||||
int ret = checkout_paths(&opts, new_branch_info.name);
|
||||
return ret;
|
||||
} else {
|
||||
return checkout_branch(&opts, &new_branch_info);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue