mirror of
https://github.com/espressif/openthread.git
synced 2026-07-08 13:20:25 +00:00
[style] harmonize boolean checks (#4048)
This commit simplifies boolean checks containing `== false` to use the `!` operator instead, and removes redundant `== true` checks. This commit aims to harmonize the boolean checks across core modules.
This commit is contained in:
committed by
Jonathan Hui
parent
74bfb58d2a
commit
31ce3d45c8
+1
-1
@@ -1023,7 +1023,7 @@ void Interpreter::ProcessEidCache(int argc, char *argv[])
|
||||
{
|
||||
SuccessOrExit(otThreadGetEidCacheEntry(mInstance, i, &entry));
|
||||
|
||||
if (entry.mValid == false)
|
||||
if (!entry.mValid)
|
||||
{
|
||||
continue;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user