Can this be:

```scala
val sslConfig = {
  val inner = new SSLConfig().allowAllHostnames()
  if(!skipKeyStore && trustStorePassword != null) {
    inner.keystore("keystore", trustStorePassword)
  } else {
    inner.relaxedHTTPSValidation()
  }
  new RestAssuredConfig().sslConfig(inner)
}
```

Cuts down on repetition a bit.

[ Full content available at: 
https://github.com/apache/incubator-openwhisk/pull/4004 ]
This message was relayed via gitbox.apache.org for [email protected]

Reply via email to