Skip to content

Commit

Permalink
fix(websocket driver): fix unnecessary error return statement
Browse files Browse the repository at this point in the history
  • Loading branch information
lukasl-dev committed Aug 1, 2021
1 parent 898280a commit fd0f612
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions driver/websocketdriver/event_receiver.go
Original file line number Diff line number Diff line change
Expand Up @@ -57,10 +57,9 @@ func (e *eventReceiver) Events() <-chan event.Event {
func (e *eventReceiver) start() {
for {
evt, err := e.unmarshal()
if err != nil {
return
if err == nil {
e.events <- evt
}
e.events <- evt
}
}

Expand Down

0 comments on commit fd0f612

Please sign in to comment.