Skip to content

Commit 7a2fb22

Browse files
xu-shawnPikaCat-OuO
authored andcommitted
remove non-functional else
since we break out of the loop in the other branch no functional change
1 parent 5eb21bb commit 7a2fb22

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
@@ -1277,15 +1277,13 @@ Value Search::Worker::search(
12771277
assert(value >= beta); // Fail high
12781278
break;
12791279
}
1280-
else
1281-
{
1282-
// Reduce other moves if we have found at least one score improvement
1283-
if (depth > 2 && depth < 11 && !is_decisive(value))
1284-
depth -= 2;
12851280

1286-
assert(depth > 0);
1287-
alpha = value; // Update alpha! Always alpha < beta
1288-
}
1281+
// Reduce other moves if we have found at least one score improvement
1282+
if (depth > 2 && depth < 11 && !is_decisive(value))
1283+
depth -= 2;
1284+
1285+
assert(depth > 0);
1286+
alpha = value; // Update alpha! Always alpha < beta
12891287
}
12901288
}
12911289

0 commit comments

Comments
 (0)