Skip to content

Commit 9217783

Browse files
authored
Merge pull request #1894 from stgraber/operations
2 parents a13b439 + 98c20bf commit 9217783

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

cmd/incusd/operations.go

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -969,12 +969,9 @@ func operationWaitGet(d *Daemon, r *http.Request) response.Response {
969969
}
970970

971971
// Wait for the operation.
972-
err = op.Wait(ctx)
973-
if err != nil {
974-
_ = response.SmartError(err).Render(w)
975-
return nil
976-
}
972+
_ = op.Wait(ctx)
977973

974+
// Render the current state.
978975
_, body, err := op.Render()
979976
if err != nil {
980977
_ = response.SmartError(err).Render(w)

0 commit comments

Comments
 (0)