mirror of
https://gitcode.com/gitea/gitea.git
synced 2025-10-24 17:25:19 +08:00
Fix queue pop error and stat empty repository error (#10248)
* Fix queue pop error and stat empty repository error * Fix error
This commit is contained in:
@ -19,6 +19,10 @@ func (db *DBIndexer) Index(id int64) error {
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
if repo.IsEmpty {
|
||||
return nil
|
||||
}
|
||||
|
||||
status, err := repo.GetIndexerStatus(models.RepoIndexerTypeStats)
|
||||
if err != nil {
|
||||
return err
|
||||
|
||||
Reference in New Issue
Block a user