Skip to content

Commit 5337edf

Browse files
xu-shawnvondele
authored andcommitted
remove non-functional else
since we break out of the loop in the other branch closes #6116 no functional change
1 parent 9ac7566 commit 5337edf

File tree

1 file changed

+6
-8
lines changed

1 file changed

+6
-8
lines changed

src/search.cpp

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1380,15 +1380,13 @@ Value Search::Worker::search(
13801380
assert(value >= beta); // Fail high
13811381
break;
13821382
}
1383-
else
1384-
{
1385-
// Reduce other moves if we have found at least one score improvement
1386-
if (depth > 2 && depth < 16 && !is_decisive(value))
1387-
depth -= 2;
13881383

1389-
assert(depth > 0);
1390-
alpha = value; // Update alpha! Always alpha < beta
1391-
}
1384+
// Reduce other moves if we have found at least one score improvement
1385+
if (depth > 2 && depth < 16 && !is_decisive(value))
1386+
depth -= 2;
1387+
1388+
assert(depth > 0);
1389+
alpha = value; // Update alpha! Always alpha < beta
13921390
}
13931391
}
13941392

0 commit comments

Comments
 (0)