From e4f960046c370f52ea2167a1d35b4005cbe0e572 Mon Sep 17 00:00:00 2001
From: Kristof Szabados <Kristof.Szabados@ericsson.com>
Date: Wed, 19 Dec 2018 13:54:04 +0100
Subject: [PATCH] minor simplification.

Signed-off-by: Kristof Szabados <Kristof.Szabados@ericsson.com>
---
 core/Communication.cc | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/core/Communication.cc b/core/Communication.cc
index bf4c2ccbe..a3851c4d3 100644
--- a/core/Communication.cc
+++ b/core/Communication.cc
@@ -1222,8 +1222,7 @@ boolean TTCN_Communication::send_log(time_t timestamp_sec, long timestamp_usec,
     /* If an ERROR message (indicating a version mismatch) arrives from MC
 	   in state HC_IDLE (i.e. before CONFIGURE) it shall be
 	   printed to the console as well. */
-    if (TTCN_Runtime::get_state() == TTCN_Runtime::HC_IDLE) return FALSE;
-    else return TRUE;
+    return TTCN_Runtime::get_state() != TTCN_Runtime::HC_IDLE;
   } else {
     switch (TTCN_Runtime::get_state()) {
     case TTCN_Runtime::HC_EXIT:
-- 
GitLab