Skip to content

Commit

Permalink
fix(xapi/VM_destroy): remove useless return
Browse files Browse the repository at this point in the history
  • Loading branch information
julien-f committed Mar 16, 2022
1 parent 6aa5ec6 commit ed09608
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion @xen-orchestra/xapi/src/vm.js
Original file line number Diff line number Diff line change
Expand Up @@ -339,7 +339,7 @@ module.exports = class Vm {
// destroyed even if this fails
await this.call('VM.destroy', vmRef)

return Promise.all([
await Promise.all([
asyncMap(vm.snapshots, snapshotRef =>
this.VM_destroy(snapshotRef).catch(error => {
warn('VM_destroy: failed to destroy snapshot', {
Expand Down

0 comments on commit ed09608

Please sign in to comment.