fuzz: use ConsumeBool() instead of !ConsumeBool()
The former is shorter and ends up with a "random" bool anyway.
This commit is contained in:
1 file changed
+1
-1
@@ -178,7 +178,7 @@ bool FuzzedSock::Wait(std::chrono::milliseconds timeout, Event requested, Event*
|
|||||||
EINTR,
|
EINTR,
|
||||||
EINVAL,
|
EINVAL,
|
||||||
};
|
};
|
||||||
if (!m_fuzzed_data_provider.ConsumeBool()) {
|
if (m_fuzzed_data_provider.ConsumeBool()) {
|
||||||
SetFuzzedErrNo(m_fuzzed_data_provider, wait_errnos);
|
SetFuzzedErrNo(m_fuzzed_data_provider, wait_errnos);
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in new issue
Block a user