Fix restore without topic failure (#18387) (#18401)

Co-authored-by: zeripath <art27@cantab.net>
This commit is contained in:
Lunny Xiao
2022-01-26 11:16:13 +08:00
committed by GitHub
parent d60b5f1e89
commit df57524c49

View File

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