From 4a7ec0f9a888e9142009e9517e48b260a4b7cdba Mon Sep 17 00:00:00 2001 From: mirko Date: Thu, 19 Dec 2024 20:38:36 +0100 Subject: [PATCH] Fix formatting --- routers/web/repo/compare.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/routers/web/repo/compare.go b/routers/web/repo/compare.go index cddbdf82b1..2afc432e35 100644 --- a/routers/web/repo/compare.go +++ b/routers/web/repo/compare.go @@ -722,7 +722,7 @@ func CompareDiff(ctx *context.Context) { } if ctx.Data["ComparingDiff"].(bool) { - err := git.GetRepoRawDiffForFile(ci.HeadGitRepo, ci.BaseBranch, ci.HeadBranch,git.RawDiffNormal,"", ctx.Resp) + err := git.GetRepoRawDiffForFile(ci.HeadGitRepo, ci.BaseBranch, ci.HeadBranch,git.RawDiffNormal, "", ctx.Resp) if err != nil { ctx.ServerError("ComparingDiff", err) return @@ -730,7 +730,7 @@ func CompareDiff(ctx *context.Context) { } if ctx.Data["ComparingPatch"].(bool) { - err := git.GetRepoRawDiffForFile(ci.HeadGitRepo, ci.BaseBranch, ci.HeadBranch,git.RawDiffPatch,"", ctx.Resp) + err := git.GetRepoRawDiffForFile(ci.HeadGitRepo, ci.BaseBranch, ci.HeadBranch,git.RawDiffPatch, "", ctx.Resp) if err != nil { ctx.ServerError("ComparingPatch", err) return