Simplifying Option[Boolean] expression in Scala

前端 未结 0 1039
伪装坚强ぢ
伪装坚强ぢ 2020-12-03 16:33

I have code like that:

optionBoolean.getOrElse(false) && otherOptionBoolean.getOrElse(false)

And scalastyle tells me that it can be s

相关标签:
回答
  • 消灭零回复
提交回复
热议问题