From: Matthew Fernandez Date: Sat, 8 May 2021 03:45:21 +0000 (-0700) Subject: remove redundant conditional clause X-Git-Tag: 2.47.2~11^2~1 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=3df8853a19a352a99e8054ddad5e739d0a8c17da;p=graphviz remove redundant conditional clause This is always known-true due to the condition on the containing loop. --- diff --git a/lib/vpsc/solve_VPSC.cpp b/lib/vpsc/solve_VPSC.cpp index e9b035cce..596c5f695 100644 --- a/lib/vpsc/solve_VPSC.cpp +++ b/lib/vpsc/solve_VPSC.cpp @@ -382,7 +382,7 @@ bool VPSC::blockGraphIsCyclic() { break; } } - if(i==graph.end() && !graph.empty()) { + if(i==graph.end()) { //cycle found! return true; } else {