This repository was archived by the owner on Mar 2, 2022. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +2
-8
lines changed
src/main/scala/reactor/core/scala/publisher Expand file tree Collapse file tree 1 file changed +2
-8
lines changed Original file line number Diff line number Diff 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="">
You can’t perform that action at this time.
0 commit comments