Skip to content

Commit 1d75b8e

Browse files
authored
Update routers/repo/branch.go
1 parent 748e95d commit 1d75b8e

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

routers/repo/branch.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -191,6 +191,8 @@ func deleteBranch(ctx *context.Context, branchName string) error {
191191
return nil
192192
}
193193

194+
// loadBranches loads branches from the repository limited by page & pageSize.
195+
// NOTE: May write to context on error. page & pageSize must be > 0
194196
func loadBranches(ctx *context.Context, page, pageSize int) ([]*Branch, int) {
195197
defaultBranch, err := repo_module.GetBranch(ctx.Repo.Repository, ctx.Repo.Repository.DefaultBranch)
196198
if err != nil {

0 commit comments

Comments
 (0)