Remove more useless casts

This commit is contained in:
Jason Robinson
2026-06-26 13:29:48 +03:00
parent 7a60657dd1
commit f453e03c8c
+3 -5
View File
@@ -2377,8 +2377,8 @@ class SyncHandler:
profile_data.get(field_name) is not None
or other_user_id in updated_users
):
per_user_updates[field_name] = cast(
JsonValue, profile_data.get(field_name)
per_user_updates[field_name] = profile_data.get(
field_name
)
# Update our cache
cache.set(
@@ -2394,9 +2394,7 @@ class SyncHandler:
else user_fields.get(other_user_id, [])
)
for field_name in fields:
per_user_updates[field_name] = cast(
JsonValue, profile_data.get(field_name)
)
per_user_updates[field_name] = profile_data.get(field_name)
if per_user_updates:
profile_updates[other_user_id] = per_user_updates