Skip to content

Commit

Permalink
fix(gw): missing return if dir fails to finalize (ipfs#8806)
Browse files Browse the repository at this point in the history
  • Loading branch information
makew0rld authored and xrazis committed Apr 14, 2022
1 parent d1183bb commit b204bb0
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions core/corehttp/gateway_handler.go
Original file line number Diff line number Diff line change
Expand Up @@ -662,6 +662,7 @@ func (i *gatewayHandler) deleteHandler(w http.ResponseWriter, r *http.Request) {
nnode, err := root.GetDirectory().GetNode()
if err != nil {
webError(w, "WritableGateway: failed to finalize", err, http.StatusInternalServerError)
return
}
ncid := nnode.Cid()

Expand Down

0 comments on commit b204bb0

Please sign in to comment.