Skip to content

Commit cb39e7f

Browse files
Merge pull request #2875 from practicalswift/cpp-code-cleanup
[gardening] Don't compare with FALSE. Remove commented out code.
2 parents 775a0ec + 1e0a4af commit cb39e7f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

stdlib/public/runtime/MutexWin32.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ using namespace swift;
2323
void ConditionPlatformHelper::wait(CONDITION_VARIABLE &condition,
2424
SRWLOCK &mutex) {
2525
BOOL result = SleepConditionVariableSRW(&condition, &mutex, INFINITE, 0);
26-
if (result == FALSE) {
26+
if (!result) {
2727
DWORD errorcode = GetLastError();
2828
fatalError(/* flags = */ 0,
2929
"'SleepConditionVariableSRW()' failed with error code %d\n",

0 commit comments

Comments
 (0)