Merge pull request #2902 from liubin/fix/2901-delete-duplicated-line

virtcontainers: delete duplicated notify in watchHypervisor function
This commit is contained in:
James O. D. Hunt
2021-10-26 08:22:11 +01:00
committed by GitHub

View File

@@ -142,7 +142,6 @@ func (m *monitor) watchAgent(ctx context.Context) {
func (m *monitor) watchHypervisor(ctx context.Context) error {
if err := m.sandbox.hypervisor.Check(); err != nil {
m.notify(ctx, errors.Wrapf(err, "failed to ping hypervisor process"))
m.notify(ctx, errors.Wrapf(err, "failed to ping Hypervisor process"))
return err
}
return nil