From eaf20b0fe63d0edae705cc260524c13044e66301 Mon Sep 17 00:00:00 2001 From: Dan K <dk14142@gmail.com> Date: Tue, 16 Jul 2019 21:46:12 +0200 Subject: [PATCH] WIP:fix(ch9s6): add braces for if block --- micro-java/src/main/java/com/redhat/training/openshift/hello/HelloResource.java | 6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-) diff --git a/micro-java/src/main/java/com/redhat/training/openshift/hello/HelloResource.java b/micro-java/src/main/java/com/redhat/training/openshift/hello/HelloResource.java index 3db3118..7b39d65 100644 --- a/micro-java/src/main/java/com/redhat/training/openshift/hello/HelloResource.java +++ b/micro-java/src/main/java/com/redhat/training/openshift/hello/HelloResource.java @@ -16,12 +16,12 @@ String message = System.getenv().getOrDefault("APP_MSG", null); String response = ""; - if (message == null) + if (message == null) { response = "Hello world from host "+hostname+"\n"; - else + } else { response = "Hello world from host ["+hostname+"]."; response += "Message received = "+message+"\n"; - + } return response; } } -- Gitblit v1.9.3