Skip to content
Permalink
Browse files
fix(firestore): address a missing branch in watch.stop() error remapp…
…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 89ad55d72f79995a68f9c2ed1cd9b5ba50009d6d
Showing with 3 additions and 0 deletions.
  1. +3 −0 firestore/watch.go
@@ -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
}

0 comments on commit 89ad55d

Please sign in to comment.