Browse Source

Reformat

pull/39/head
Dashie der otter 2 months ago
parent
commit
d45ce919b6
Signed by: Dashie <dashie@sigpipe.me> GPG Key ID: C2D57B325840B755
1 changed files with 2 additions and 2 deletions
  1. 2
    2
      activitypub/utils.py

+ 2
- 2
activitypub/utils.py View File

@@ -79,9 +79,9 @@ def clean_activity(activity: ObjectType) -> Dict[str, Any]:
79 79
     """
80 80
     for field in ["bto", "bcc", "source"]:
81 81
         if field in activity:
82
-            del (activity[field])
82
+            del activity[field]
83 83
         if activity["type"] == "Create" and field in activity["object"]:
84
-            del (activity["object"][field])
84
+            del activity["object"][field]
85 85
     return activity
86 86
 
87 87
 

Loading…
Cancel
Save