Skip to content

Examples #4

Open
optician opened this issue Nov 25, 2016 · 0 comments
Open

Examples #4

optician opened this issue Nov 25, 2016 · 0 comments

Comments

@optician
Copy link
Contributor

AClient.scala
val hosts = scala.util.Try(List(config.getString("ru-tinkoff-aerospike-dsl.example-host"))).toOption .getOrElse(throw new Exception("Add host for aerospike in application.conf file"))
toOption is redundant. Try already contains getOrElse method.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant