From c658ce81f4676954c4afa2895bb9d95d7fbe1497 Mon Sep 17 00:00:00 2001 From: Arnaud Giersch Date: Tue, 2 May 2023 16:14:43 +0200 Subject: [PATCH] Simplify expression. --- src/plugins/operation.cpp | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) 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; } /** -- 2.20.1