Skip to content

Commit

Permalink
change return type (#25873)
Browse files Browse the repository at this point in the history
  • Loading branch information
pankore authored Apr 2, 2023
1 parent 63e61a0 commit 7ccd5d4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/platform/Ameba/KeyValueStoreManagerImpl.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ CHIP_ERROR KeyValueStoreManagerImpl::_Put(const char * key, const void * value,
if (checkExist(key, key))
{
ret = deleteKey(key, key);
if (TRUE != ret)
if (ret != 0)
{
ChipLogError(DeviceLayer, "Warning, KVS leakage, failed to remove old kvs value");
}
Expand Down

0 comments on commit 7ccd5d4

Please sign in to comment.