mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2024-11-25 14:35:40 +00:00
optimize function
This commit is contained in:
parent
962cd374e2
commit
431b4c2829
|
@ -238,10 +238,7 @@ func StoreFederatedRepoList(ctx context.Context, localRepoId int64, federatedRep
|
||||||
}
|
}
|
||||||
|
|
||||||
func DeleteFederatedRepos(ctx context.Context, localRepoId int64) error {
|
func DeleteFederatedRepos(ctx context.Context, localRepoId int64) error {
|
||||||
if err := repo.StoreFederatedRepos(ctx, localRepoId, []*repo.FederatedRepo{}); err != nil {
|
return repo.StoreFederatedRepos(ctx, localRepoId, []*repo.FederatedRepo{})
|
||||||
return err
|
|
||||||
}
|
|
||||||
return nil
|
|
||||||
}
|
}
|
||||||
|
|
||||||
func SendLikeActivities(ctx context.Context, doer user.User, repoID int64) error {
|
func SendLikeActivities(ctx context.Context, doer user.User, repoID int64) error {
|
||||||
|
|
Loading…
Reference in a new issue