Skip to content

Commit b195ff8

Browse files
committed
Remove duplicate NotificationLite.
1 parent 1c00aa6 commit b195ff8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

rxjava-core/src/main/java/rx/subjects/AsyncSubject.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,8 +63,8 @@ public static <T> AsyncSubject<T> create() {
6363
@Override
6464
public void call(SubjectObserver<T> o) {
6565
Object v = state.get();
66-
o.accept(v, state.nl);
67-
NotificationLite<T> nl = NotificationLite.instance();
66+
NotificationLite<T> nl = state.nl;
67+
o.accept(v, nl);
6868
if (v == null || (!nl.isCompleted(v) && !nl.isError(v))) {
6969
o.onCompleted();
7070
}

0 commit comments

Comments
 (0)