mirror of
https://github.com/minio/minio.git
synced 2025-02-09 12:48:08 -05:00
fix: misplaced write response command in DetachPolicy() (#16333)
This commit is contained in:
parent
75faef888e
commit
49b3908635
@ -1904,9 +1904,6 @@ func (a adminAPIHandlers) DetachPolicyBuiltin(w http.ResponseWriter, r *http.Req
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// Return successful JSON response
|
|
||||||
writeSuccessNoContent(w)
|
|
||||||
}
|
}
|
||||||
|
|
||||||
userType := regUser
|
userType := regUser
|
||||||
@ -1968,6 +1965,9 @@ func (a adminAPIHandlers) DetachPolicyBuiltin(w http.ResponseWriter, r *http.Req
|
|||||||
writeErrorResponseJSON(ctx, w, toAdminAPIErr(ctx, err), r.URL)
|
writeErrorResponseJSON(ctx, w, toAdminAPIErr(ctx, err), r.URL)
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Return successful JSON response
|
||||||
|
writeSuccessNoContent(w)
|
||||||
}
|
}
|
||||||
|
|
||||||
const (
|
const (
|
||||||
|
Loading…
x
Reference in New Issue
Block a user