Skip to content

Commit 26854b2

Browse files
committed
1. Renamed npm/cassandra to npm/cassandra-driver
2. Updated build.sbt 3. Fixed issues preventing Sonatype release
1 parent 55692dc commit 26854b2

23 files changed

+145
-15
lines changed

build.sbt

Lines changed: 106 additions & 14 deletions
Large diffs are not rendered by default.

core/util/src/main/scala/org/scalajs/sjs/OptionHelper.scala

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,12 @@ object OptionHelper {
2626

2727
@inline def ??(optB: => Option[T]): Option[T] = if (valueA.isDefined) valueA else optB
2828

29+
@inline def flat = valueA.flatMap(Option(_))
30+
31+
@inline def isAssigned = valueA.flat.nonEmpty
32+
33+
@inline def nonAssigned = valueA.flat.isEmpty
34+
2935
@inline def orDie(message: String): T = valueA getOrElse (throw new IllegalStateException(message))
3036

3137
}

0 commit comments

Comments
 (0)