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 committed Mar 21, 2022
1 parent 0dabcc2 commit 62cafc7
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 @@ -526,6 +526,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 62cafc7

Please sign in to comment.