Skip to content

Commit

Permalink
Fix restore without topic failure (go-gitea#18387)
Browse files Browse the repository at this point in the history
Co-authored-by: zeripath <art27@cantab.net>
  • Loading branch information
2 people authored and Stelios Malathouras committed Mar 28, 2022
1 parent c9ee3b9 commit 3ff35a1
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions services/migrations/restore.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}

Expand Down

0 comments on commit 3ff35a1

Please sign in to comment.