[Wasm] Replace takeIf with ifEmpty in TeamcityAdapter
This commit is contained in:
@@ -82,7 +82,7 @@ internal class TeamcityAdapter : FrameworkAdapter {
|
|||||||
get() {
|
get() {
|
||||||
var value = _testArguments
|
var value = _testArguments
|
||||||
if (value == null) {
|
if (value == null) {
|
||||||
val arguments = d8Arguments().takeIf { it.isNotEmpty() } ?: nodeArguments()
|
val arguments = d8Arguments().ifEmpty { nodeArguments() }
|
||||||
value = FrameworkTestArguments.parse(arguments.split(' '))
|
value = FrameworkTestArguments.parse(arguments.split(' '))
|
||||||
_testArguments = value
|
_testArguments = value
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user