Skip to content

Commit

Permalink
salt: events: minor error-passing mechanism correction
Browse files Browse the repository at this point in the history
  • Loading branch information
streambinder committed Oct 20, 2021
1 parent 47aa52e commit 1cb736a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions salt/events.go
Original file line number Diff line number Diff line change
Expand Up @@ -82,8 +82,8 @@ func Events(endpoint, token string, peephole chan *EventsResponse) error {
block = []string{}
}
}
if scanner.Err() != nil {
return scanner.Err()
if err := scanner.Err(); err != nil {
return err
}

return nil
Expand Down

0 comments on commit 1cb736a

Please sign in to comment.