Skip to content

Commit

Permalink
linted
Browse files Browse the repository at this point in the history
  • Loading branch information
ydamit committed Sep 6, 2023
1 parent 0d6a158 commit 8803d09
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions parsons/action_builder/action_builder.py
Original file line number Diff line number Diff line change
Expand Up @@ -192,9 +192,7 @@ def insert_entity_record(self, entity_type, data=None, campaign=None):
error = "Must provide data with name or given_name when inserting new record"
if not isinstance(data, dict):
raise ValueError(error)
name_check = [
key for key in data.get("person", {}) if key in name_keys
]
name_check = [key for key in data.get("person", {}) if key in name_keys]
if not name_check:
raise ValueError(error)

Expand Down

0 comments on commit 8803d09

Please sign in to comment.