Skip to content

Commit

Permalink
WIP:fix(ch9s6): add braces for if block
Browse files Browse the repository at this point in the history
  • Loading branch information
dkolepp committed Jul 16, 2019
1 parent 4fcb060 commit eaf20b0
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,12 @@ public String hello() {
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;
}
}

0 comments on commit eaf20b0

Please sign in to comment.