Skip to content

Commit

Permalink
Deletekey bug (#134)
Browse files Browse the repository at this point in the history
* [dct] fix dct deletekey bug

* [dct] revise comment
  • Loading branch information
step0035 authored Jun 19, 2023
1 parent cd0a276 commit c7a285f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions component/common/application/matter/common/port/matter_dcts.c
Original file line number Diff line number Diff line change
Expand Up @@ -257,7 +257,7 @@ s32 deleteKey(const char *domain, const char *key)
}
ret = dct_delete_variable(&handle, key);
dct_close_module(&handle);
if (ret != DCT_SUCCESS)
if (ret == DCT_SUCCESS) // return success once deleted
return ret;
}

Expand All @@ -273,7 +273,7 @@ s32 deleteKey(const char *domain, const char *key)
}
ret = dct_delete_variable2(&handle, key);
dct_close_module2(&handle);
if (ret != DCT_SUCCESS)
if (ret == DCT_SUCCESS) // return success once deleted
return ret;
}

Expand Down

0 comments on commit c7a285f

Please sign in to comment.