diff options
author | mirko <mirko@owlcode.it> | 2024-12-19 20:38:36 +0100 |
---|---|---|
committer | mirko <mirko@owlcode.it> | 2025-01-01 08:08:11 +0100 |
commit | 4a7ec0f9a888e9142009e9517e48b260a4b7cdba (patch) | |
tree | 54df33fc116ca75780bf97a8f8828c6c63ad122a /routers | |
parent | Add patch/diff compare download (diff) | |
download | forgejo-4a7ec0f9a888e9142009e9517e48b260a4b7cdba.tar.xz forgejo-4a7ec0f9a888e9142009e9517e48b260a4b7cdba.zip |
Fix formatting
Diffstat (limited to 'routers')
-rw-r--r-- | routers/web/repo/compare.go | 4 |
1 files 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 |