mirror of
https://github.com/gogrlx/nats-server.git
synced 2026-04-17 03:24:40 -07:00
Check not really needed here, so removed
Signed-off-by: Derek Collison <derek@nats.io>
This commit is contained in:
@@ -2243,9 +2243,6 @@ func (mset *stream) subscribeInternal(subject string, cb msgHandler) (*subscript
|
||||
if c == nil {
|
||||
return nil, fmt.Errorf("invalid stream")
|
||||
}
|
||||
if !c.srv.eventsEnabled() {
|
||||
return nil, ErrNoSysAccount
|
||||
}
|
||||
if cb == nil {
|
||||
return nil, fmt.Errorf("undefined message handler")
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user