Template
1
0
Fork 0
mirror of https://codeberg.org/forgejo/forgejo synced 2024-11-22 09:54:24 +01:00

optimize function

This commit is contained in:
Clemens 2024-04-02 12:38:06 +02:00
parent 962cd374e2
commit 431b4c2829

View file

@ -238,10 +238,7 @@ func StoreFederatedRepoList(ctx context.Context, localRepoId int64, federatedRep
}
func DeleteFederatedRepos(ctx context.Context, localRepoId int64) error {
if err := repo.StoreFederatedRepos(ctx, localRepoId, []*repo.FederatedRepo{}); err != nil {
return err
}
return nil
return repo.StoreFederatedRepos(ctx, localRepoId, []*repo.FederatedRepo{})
}
func SendLikeActivities(ctx context.Context, doer user.User, repoID int64) error {