From: Arnaud Giersch Date: Tue, 2 May 2023 14:14:43 +0000 (+0200) Subject: Simplify expression. X-Git-Tag: v3.34~138 X-Git-Url: http://bilbo.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/commitdiff_plain/c658ce81f4676954c4afa2895bb9d95d7fbe1497 Simplify expression. --- diff --git a/src/plugins/operation.cpp b/src/plugins/operation.cpp index a250332be2..f9f8f1c105 100644 --- a/src/plugins/operation.cpp +++ b/src/plugins/operation.cpp @@ -61,10 +61,7 @@ void Operation::remove_predecessor(Operation* predecessor) */ bool Operation::ready_to_run() const { - if (working_ or queued_execs_ <= 0) - return false; - else - return true; + return not working_ && queued_execs_ > 0; } /**