Skip to content

Commit

Permalink
fix: whitespace
Browse files Browse the repository at this point in the history
  • Loading branch information
crwilcox committed Jul 2, 2021
1 parent 814f04b commit 6524b10
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions google/cloud/firestore_v1/base_collection.py
Expand Up @@ -158,7 +158,7 @@ def _prep_add(
) -> Tuple[DocumentReference, dict]:
"""Shared setup for async / sync :method:`add`"""
if document_id is None:
document_id = _auto_id()
document_id = _auto_id()

document_ref = self.document(document_id)
kwargs = _helpers.make_retry_timeout_kwargs(retry, timeout)
Expand Down Expand Up @@ -456,7 +456,7 @@ def _auto_id() -> str:
str: A 20 character string composed of digits, uppercase and
lowercase and letters.
"""
# Randome is not thread safe, reseed with a new
# Random is not thread safe, reseed with a new
# uuid.uuid4() each iteration to avoid collisions.
seed = uuid.uuid4()
random.seed(seed)
Expand Down

0 comments on commit 6524b10

Please sign in to comment.