Skip to content

Commit

Permalink
Avoid displaying empty messages
Browse files Browse the repository at this point in the history
  • Loading branch information
gastaldi committed Oct 17, 2013
1 parent 356ec73 commit 2512fbd
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ public CommandResult execute(CommandInvocation commandInvocation) throws IOExcep
{
Result result = shell.execute(interaction);
failure = (result instanceof Failed);
if (result != null && result.getMessage() != null)
if (result != null && result.getMessage() != null && !result.getMessage().isEmpty())
{
if (failure)
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ public void initializeUI(UIBuilder builder) throws Exception
public Result execute(ShellContext context) throws Exception
{
context.getProvider().getConsole().clear();
return Results.success("");
return Results.success();
}

}

0 comments on commit 2512fbd

Please sign in to comment.