summaryrefslogtreecommitdiff
path: root/src/libgit2/diff_print.c
diff options
context:
space:
mode:
authorEdward Thomson <ethomson@github.com>2022-04-10 09:25:54 -0400
committerGitHub <noreply@github.com>2022-04-10 09:25:54 -0400
commit71bb92b565c2e55265c65c02be38909e829cef65 (patch)
tree642f30d7e28878d4cb38963aceb2a81512c6392a /src/libgit2/diff_print.c
parentd427f9522d439535acf5f3e56ad8fa0ab79b0ed3 (diff)
downloadlibgit2-71bb92b565c2e55265c65c02be38909e829cef65.tar.gz
Update src/libgit2/diff_print.c
Diffstat (limited to 'src/libgit2/diff_print.c')
-rw-r--r--src/libgit2/diff_print.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/libgit2/diff_print.c b/src/libgit2/diff_print.c
index a91036289..6c5a2cdc8 100644
--- a/src/libgit2/diff_print.c
+++ b/src/libgit2/diff_print.c
@@ -316,10 +316,9 @@ static int diff_print_oid_range(
static int diff_delta_format_path(
git_str *out, const char *prefix, const char *filename)
{
- if (!filename)
- {
+ if (!filename) {
/* don't prefix "/dev/null" */
- return git_str_puts(out, "/dev/null");
+ return git_str_puts(out, "/dev/null");
}
if (git_str_joinpath(out, prefix, filename) < 0)