New J2K: consider empty/singleton children list when comparing trees in default arguments conversion
This commit is contained in:
@@ -145,11 +145,11 @@ class DefaultArgumentsConversion(context: NewJ2kConverterContext) : RecursiveApp
|
||||
child1 as JKElement,
|
||||
child2 as JKElement
|
||||
)
|
||||
}.reduce(Boolean::and)
|
||||
}.fold(true, Boolean::and)
|
||||
}
|
||||
else -> false
|
||||
}
|
||||
}.reduce(Boolean::and)
|
||||
}.fold(true, Boolean::and)
|
||||
} else false
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user