Skip to content

Commit 3036023

Browse files
committed
Remove unnecessary cast.
1 parent 6e6f23e commit 3036023

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

language-adaptors/rxjava-scala/src/main/scala/rx/lang/scala/Observable.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1839,7 +1839,7 @@ trait Observable[+T]
18391839
* @return an Observable with the side-effecting behavior applied.
18401840
*/
18411841
def doOnEach(onNext: T => Unit): Observable[T] = {
1842-
Observable[T](asJavaObservable.asInstanceOf[rx.Observable[T]].doOnEach(
1842+
Observable[T](asJavaObservable.doOnEach(
18431843
onNext
18441844
))
18451845
}

0 commit comments

Comments
 (0)