We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 68d9e6b commit e42e4f9Copy full SHA for e42e4f9
routers/web/repo/treelist.go
@@ -70,7 +70,7 @@ type FileDiffFile struct {
70
71
// transformDiffTreeForUI transforms a DiffTree into a slice of FileDiffFile for UI rendering
72
// it also takes a map of file names to their viewed state, which is used to mark files as viewed
73
-func transformDiffTreeForUI(ctx *context.Context, baseCommit *git.Commit, headCommit *git.Commit, diffTree *gitdiff.DiffTree, filesViewedState map[string]pull_model.ViewedState) []FileDiffFile {
+func transformDiffTreeForUI(ctx *context.Context, baseCommit, headCommit *git.Commit, diffTree *gitdiff.DiffTree, filesViewedState map[string]pull_model.ViewedState) []FileDiffFile {
74
files := make([]FileDiffFile, 0, len(diffTree.Files))
75
76
for _, file := range diffTree.Files {
0 commit comments