Skip to content

Commit

Permalink
fix(restore): return nil if there is error (#7899)
Browse files Browse the repository at this point in the history
  • Loading branch information
NamanJain8 authored Jun 18, 2021
1 parent bac8fbf commit d4aeea2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion worker/backup_manifest.go
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ func getManifestsToRestore(
h UriHandler, uri *url.URL, req *pb.RestoreRequest) ([]*Manifest, error) {
manifest, err := GetManifest(h, uri)
if err != nil {
return manifest.Manifests, err
return nil, err
}
return getFilteredManifests(h, manifest.Manifests, req)
}
Expand Down

0 comments on commit d4aeea2

Please sign in to comment.