revert complete behavior check

This commit is contained in:
Timo K
2025-11-27 15:38:31 +01:00
parent e5117f705d
commit 4b0f6e76c4

View File

@@ -80,11 +80,8 @@ export class ObservableScope {
error(err: unknown) {
subject$.error(err);
},
complete() {
subject$.complete();
},
});
if (subject$.value === nothing && !subject$.isStopped)
if (subject$.value === nothing)
throw new Error("Behavior failed to synchronously emit an initial value");
return subject$ as Behavior<T>;
}