Skip to content

Commit

Permalink
Add missing return if dir fails to finalize
Browse files Browse the repository at this point in the history
  • Loading branch information
makew0rld authored and lidel committed Apr 6, 2022
1 parent e309682 commit 769c9dc
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 @@ -611,6 +611,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 769c9dc

Please sign in to comment.