1
0
Fork 0
mirror of https://codeberg.org/forgejo/forgejo.git synced 2025-10-10 19:32:02 +00:00

Format & remove old todos

This commit is contained in:
Michael Jerger 2024-05-24 08:49:08 +02:00
parent 30e2582f24
commit 64be24ed0c
5 changed files with 25 additions and 31 deletions

View file

@ -1,5 +1,4 @@
// Copyright 2016 The Gitea Authors. All rights reserved.
// Copyright 2024 The Forgejo Authors. All rights reserved.
// SPDX-License-Identifier: MIT
package repo
@ -24,6 +23,7 @@ func init() {
db.RegisterModel(new(Star))
}
// StarRepo or unstar repository.
func StarRepo(ctx context.Context, userID, repoID int64, star bool) error {
ctx, committer, err := db.TxContext(ctx)
if err != nil {