Skip to content

Commit

Permalink
update(Observable): remove unreachable return after panic(...)
Browse files Browse the repository at this point in the history
  • Loading branch information
b97tsk committed Jun 29, 2024
1 parent 5f22cd4 commit 396fef5
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion observable.go
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,6 @@ func (ob Observable[T]) Subscribe(c Context, o Observer[T]) {
if ob == nil {
defer o.Error(ErrOops)
panic("nil Observable")
return
}

ob(c, o)
Expand Down

0 comments on commit 396fef5

Please sign in to comment.