mirror of
https://github.com/espressif/openthread.git
synced 2026-06-05 21:14:49 +00:00
[code-utils] enhance 'VerifyOrExit' to make action optional (#5659)
This commit uses the newly added macros from `arg_macros.hpp` to enhance `VerifyOfExit()` enabling `aAction` argument to be optional.
This commit is contained in:
committed by
Jonathan Hui
parent
8691e90d55
commit
c9c0cf404d
@@ -169,7 +169,7 @@ otError Dataset::Process(uint8_t aArgsLength, char *aArgs[])
|
||||
}
|
||||
|
||||
command = Utils::LookupTable::Find(aArgs[0], sCommands);
|
||||
VerifyOrExit(command != nullptr, OT_NOOP);
|
||||
VerifyOrExit(command != nullptr);
|
||||
|
||||
error = (this->*command->mHandler)(aArgsLength - 1, aArgs + 1);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user