[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:
Abtin Keshavarzian
2020-10-13 23:26:02 -07:00
committed by Jonathan Hui
parent 8691e90d55
commit c9c0cf404d
112 changed files with 701 additions and 681 deletions
+1 -1
View File
@@ -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);