0
0
mirror of https://github.com/go-gitea/gitea.git synced 2024-11-27 23:48:39 +01:00

Fix restore without topic failure (#18387)

Co-authored-by: zeripath <art27@cantab.net>
This commit is contained in:
Lunny Xiao 2022-01-25 10:44:12 +08:00 committed by GitHub
parent 8053b60b4f
commit a717265e47
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -97,6 +97,9 @@ func (r *RepositoryRestorer) GetTopics() ([]string, error) {
bs, err := os.ReadFile(p)
if err != nil {
if os.IsNotExist(err) {
return nil, nil
}
return nil, err
}