Skip to content

Commit

Permalink
fix(firestore): address a missing branch in watch.stop() error remapp…
Browse files Browse the repository at this point in the history
…ing (#3643)

* fix(firestore): address a missing branch in watch.stop() error remapping

* fix(firestore): prefer not using else
  • Loading branch information
crwilcox committed Feb 2, 2021
1 parent 9af529c commit 89ad55d
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions firestore/watch.go
Expand Up @@ -446,8 +446,11 @@ func (s *watchStream) stop() {
return
}
if err != nil {
// if an error occurs while closing the stream
s.err = err
return
}
// if we close successfully,
s.err = io.EOF // normal shutdown
}

Expand Down

0 comments on commit 89ad55d

Please sign in to comment.