Skip to content
This repository was archived by the owner on Mar 2, 2022. It is now read-only.

Commit ef50202

Browse files
committed
Removing compile warning
Signed-off-by: Winarto Zhao <[email protected]>
1 parent 587fcb1 commit ef50202

File tree

1 file changed

+2
-8
lines changed

1 file changed

+2
-8
lines changed

src/main/scala/reactor/core/scala/publisher/SMono.scala

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1469,13 +1469,7 @@ object SMono extends ScalaConverters {
14691469

14701470
def justOrEmpty[T](data: Option[_ <: T]): SMono[T] = JMono.justOrEmpty[T](data).asScala
14711471

1472-
def justOrEmpty[T](data: Any): SMono[T] = {
1473-
(data match {
1474-
case o: Option[T] => JMono.justOrEmpty[T](o)
1475-
case other: T => JMono.justOrEmpty[T](other)
1476-
case null => JMono.empty[T]()
1477-
}).asScala
1478-
}
1472+
def justOrEmpty[T](data: T): SMono[T] = JMono.justOrEmpty(data).asScala
14791473

14801474
def never[T]: SMono[T] = JMono.never[T]().asScala
14811475

@@ -1485,7 +1479,7 @@ object SMono extends ScalaConverters {
14851479
/**
14861480
* Create a [[SMono]] emitting the [[Context]] available on subscribe.
14871481
* If no Context is available, the mono will simply emit the
1488-
* [[Context.empty() empty Context].
1482+
* [[Context.empty() empty Context]].
14891483
*
14901484
* <p>
14911485
* <img class="marble" src="https://raw.githubusercontent.com/reactor/reactor-core/v3.1.3.RELEASE/src/docs/marble/justorempty.png" alt="">

0 commit comments

Comments
 (0)