Skip to content

Commit

Permalink
formatter: correctly check if function is a declaration
Browse files Browse the repository at this point in the history
  • Loading branch information
panchenko committed Jan 24, 2013
1 parent 2f21877 commit 52bfdc1
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -729,7 +729,7 @@ public IFormatterNode visitFunctionStatement(FunctionStatement node) {
|| isEmptyBody(node.getBody());
IBracesConfiguration bodyConfiguration;

if (node.getName() != null)
if (node.isDeclaration())
bodyConfiguration = new FunctionBodyBracesConfiguration(
document, emptyBody);
else
Expand Down

0 comments on commit 52bfdc1

Please sign in to comment.