From e5f32f0542189248c16af7e770a7cbc7eba9b3cf Mon Sep 17 00:00:00 2001
From: izaingrid <farkas94ingi@gmail.com>
Date: Fri, 17 Aug 2018 14:58:42 +0200
Subject: [PATCH] minor formatting for port

Signed-off-by: izaingrid <farkas94ingi@gmail.com>
---
 compiler2/ttcn3/port.c | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/compiler2/ttcn3/port.c b/compiler2/ttcn3/port.c
index f024efd8a..5808c9f2c 100644
--- a/compiler2/ttcn3/port.c
+++ b/compiler2/ttcn3/port.c
@@ -200,10 +200,10 @@ static char *generate_send_mapping(char *src, const port_def *pdef,
     if (has_condition) {
       if (!pdef->legacy && pdef->port_type == USER) {
         src = mputstr(src, "if (port_state != PARTIALLY_TRANSLATED) {\n");
-      }
-      src = mputstr(src, "return;\n");
-      if (!pdef->legacy && pdef->port_type == USER) {
-        src = mputstr(src, "}\n");
+      	src = mputstr(src, "return;\n");
+      	src = mputstr(src, "}\n");
+      } else {
+      	src = mputstr(src, "return;\n");
       }
       if (pdef->legacy) {
         src = mputstr(src, "}\n");
-- 
GitLab