Skip to content

Commit

Permalink
bugfix/empty-lambdas(#796)
Browse files Browse the repository at this point in the history
### What's done:
  * Fixed bug
  • Loading branch information
aktsay6 committed Mar 19, 2021
1 parent 430b0bd commit bceb7be
Showing 1 changed file with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -114,9 +114,7 @@ class EmptyBlock(configRules: List<RulesConfig>) : DiktatRule(
// cases like A({}). Here Lambda expression is used as a value parameter.
lambdaExpression.treeParent.elementType == VALUE_PARAMETER
}
else -> {
false
}
else -> false
}
}

Expand Down

0 comments on commit bceb7be

Please sign in to comment.