Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixed some code smells. #180

Merged
merged 11 commits into from
Jul 25, 2018
Merged
Prev Previous commit
Next Next commit
AtlasResourceLoaderErrorSubCommand: removed extra curly braces
  • Loading branch information
lucaspcram committed Jul 19, 2018
commit 284a790fb829840281e0ea85001b17da51abb04f
Original file line number Diff line number Diff line change
Expand Up @@ -36,10 +36,7 @@ public int execute(final CommandMap map)
{
oops.printStackTrace();
ExceptionSearch.find(StreamCorruptedException.class).within(oops)
.ifPresent(poorlyFormattedFile ->
{
poorlyFormattedFile.printStackTrace();
});
.ifPresent(poorlyFormattedFile -> poorlyFormattedFile.printStackTrace());
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The continue with the nice style @mgcuthbert referred to above, what about

.ifPresent(StreamCorruptedException::printStackTrace);

}
return 0;
}
Expand Down