Skip to content

Commit 51a4872

Browse files
makew0rldlidel
authored andcommitted
Add missing return if dir fails to finalize
1 parent 4df7b79 commit 51a4872

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

core/corehttp/gateway_handler.go

+1
Original file line numberDiff line numberDiff line change
@@ -611,6 +611,7 @@ func (i *gatewayHandler) deleteHandler(w http.ResponseWriter, r *http.Request) {
611611
nnode, err := root.GetDirectory().GetNode()
612612
if err != nil {
613613
webError(w, "WritableGateway: failed to finalize", err, http.StatusInternalServerError)
614+
return
614615
}
615616
ncid := nnode.Cid()
616617

0 commit comments

Comments
 (0)