Skip to content

Commit

Permalink
refactor: address comments
Browse files Browse the repository at this point in the history
  • Loading branch information
larkee committed Nov 3, 2020
1 parent 1482435 commit bf06add
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion google/cloud/spanner.py
@@ -1,4 +1,4 @@
# Copyright 2017, Google LLC All rights reserved.
# Copyright 2016, Google LLC All rights reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
Expand Down
2 changes: 1 addition & 1 deletion google/cloud/spanner_v1/streamed.py
Expand Up @@ -119,7 +119,7 @@ def _consume_next(self):
if source is not None and source._transaction_id is None:
source._transaction_id = metadata.transaction.id

if type(response).pb(response).HasField("stats"): # last response
if "stats" in response: # last response
self._stats = response.stats

values = list(response.values)
Expand Down

0 comments on commit bf06add

Please sign in to comment.