WIP:fix(ch9s6): add braces for if block
This commit is contained in:
parent
4fcb06042f
commit
eaf20b0fe6
1 changed files with 3 additions and 3 deletions
|
|
@ -16,12 +16,12 @@ public class HelloResource {
|
|||
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;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue