Skip to content

Commit 29395f1

Browse files
committed
fixed code style issue
1 parent 28f4899 commit 29395f1

File tree

1 file changed

+10
-6
lines changed

1 file changed

+10
-6
lines changed

diktat-rules/src/main/kotlin/org/cqfn/diktat/ruleset/rules/chapter3/BooleanExpressionsRule.kt

+10-6
Original file line numberDiff line numberDiff line change
@@ -279,9 +279,11 @@ class BooleanExpressionsRule(configRules: List<RulesConfig>) : DiktatRule(
279279
}
280280
}
281281

282-
private fun applyInternal(input: NExpression<K>,
283-
upperExpressionCreator: ExpressionCreator<K>,
284-
innerExpressionCreator: ExpressionCreator<K>): Expression<K> {
282+
private fun applyInternal(
283+
input: NExpression<K>,
284+
upperExpressionCreator: ExpressionCreator<K>,
285+
innerExpressionCreator: ExpressionCreator<K>
286+
): Expression<K> {
285287
val commonExpression = requireNotNull(findCommonExpression(input.children)) {
286288
"Common expression is not found for $input"
287289
}
@@ -292,9 +294,11 @@ class BooleanExpressionsRule(configRules: List<RulesConfig>) : DiktatRule(
292294
)))
293295
}
294296

295-
private fun excludeChild(expression: Expression<K>,
296-
expressionCreator: ExpressionCreator<K>,
297-
childToExclude: Expression<K>): Expression<K> {
297+
private fun excludeChild(
298+
expression: Expression<K>,
299+
expressionCreator: ExpressionCreator<K>,
300+
childToExclude: Expression<K>
301+
): Expression<K> {
298302
val leftChildren = expression.children.filterNot { it.equals(childToExclude) }
299303
return if (leftChildren.size == 1) {
300304
leftChildren.first()

0 commit comments

Comments
 (0)