remove nil response to 404 translation for PatchOperation (#13167)

* remove nil response to 404 translation for PatchOperation

* go get vault-plugin-secrets-kv@master
This commit is contained in:
Chris Capurso
2021-11-23 13:57:22 -05:00
committed by GitHub
parent 34c16a0c24
commit 2c2b9b8720
4 changed files with 4 additions and 50 deletions

View File

@@ -17,7 +17,7 @@ import (
func RespondErrorCommon(req *Request, resp *Response, err error) (int, error) {
if err == nil && (resp == nil || !resp.IsError()) {
switch {
case req.Operation == ReadOperation, req.Operation == PatchOperation:
case req.Operation == ReadOperation:
if resp == nil {
return http.StatusNotFound, nil
}