Skip to content

Commit

Permalink
Lint
Browse files Browse the repository at this point in the history
  • Loading branch information
tseaver committed Nov 12, 2018
1 parent 6996fdd commit a805852
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions firestore/google/cloud/firestore_v1beta1/_helpers.py
Original file line number Diff line number Diff line change
Expand Up @@ -1070,7 +1070,7 @@ def pbs_for_create(document_path, document_data):
name=document_path,
fields=encode_dict(actual_data),
),
current_document = common_pb2.Precondition(exists=False),
current_document=common_pb2.Precondition(exists=False),
)

write_pbs.append(update_pb)
Expand All @@ -1084,6 +1084,7 @@ def pbs_for_create(document_path, document_data):

return write_pbs


def pbs_for_set(document_path, document_data, merge=False):
"""Make ``Write`` protobufs for ``set()`` methods.
Expand Down Expand Up @@ -1197,7 +1198,7 @@ def _pbs_for_set_with_merge(document_path, document_data, merge):
for transform_path in transform_paths:
if len(transform_path.parts) > 1:
parent_fp = FieldPath(*transform_path.parts[:-1])
if not parent_fp in update_paths:
if parent_fp not in update_paths:
update_paths.append(parent_fp)

if actual_data or create_empty or update_paths:
Expand Down Expand Up @@ -1284,7 +1285,6 @@ def pbs_for_update(client, document_path, field_updates, option):
option.modify_write(update_pb)
write_pbs.append(update_pb)


if transform_paths:
transform_pb = get_transform_pb(document_path, transform_paths)
if not update_values:
Expand Down

0 comments on commit a805852

Please sign in to comment.