Skip to content

Commit 651d622

Browse files
authored
style: remove unused variable (#2991)
1 parent 35b1bcb commit 651d622

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

graph/max_flow_with_ford_fulkerson_and_edmond_karp_algo.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,7 @@ class Graph {
2727
visited.reset();
2828
std::queue<int> q;
2929
q.push(source);
30-
bool is_path_found = false;
31-
while (q.empty() == false && is_path_found == false) {
30+
while (q.empty() == false) {
3231
int current_node = q.front();
3332
visited.set(current_node);
3433
q.pop();

0 commit comments

Comments
 (0)