From 6bd31b9063390dc571e0373faf70083d06bd7298 Mon Sep 17 00:00:00 2001 From: juliannguyen4 <109386615+juliannguyen4@users.noreply.github.com> Date: Thu, 3 Aug 2023 13:45:55 -0700 Subject: [PATCH] Remove suppressed error for operate() --- src/main/client/operate.c | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/src/main/client/operate.c b/src/main/client/operate.c index 6475e00859..f82933e45f 100644 --- a/src/main/client/operate.c +++ b/src/main/client/operate.c @@ -94,11 +94,7 @@ static inline bool isExprOp(int op); if (py_list) { \ Py_DECREF(py_list); \ } \ - if (err.code != AEROSPIKE_OK) { \ - as_error_update(&err, err.code, NULL); \ - goto CLEANUP; \ - } \ - else if (!py_result) { \ + if (err.code == AEROSPIKE_OK && !py_result) { \ return NULL; \ } \ else { \