Skip to content

Commit

Permalink
chore(firestore): gofmt query.go (#8084)
Browse files Browse the repository at this point in the history
  • Loading branch information
noahdietz committed Jun 12, 2023
1 parent 5f24d17 commit fc23ae4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions firestore/query.go
Original file line number Diff line number Diff line change
Expand Up @@ -1054,9 +1054,9 @@ func (it *queryDocumentIterator) next() (_ *DocumentSnapshot, err error) {
client := it.q.c
if it.streamClient == nil {
it.ctx = trace.StartSpan(it.ctx, "cloud.google.com/go/firestore.Query.RunQuery")
defer func() {
defer func() {
if errors.Is(err, iterator.Done) {
trace.EndSpan(it.ctx, nil)
trace.EndSpan(it.ctx, nil)
} else {
trace.EndSpan(it.ctx, err)
}
Expand Down

0 comments on commit fc23ae4

Please sign in to comment.