File .deepsource.toml
not found in the default branch of the repository root. Please refer to the docs.
292 else validated_data.get("properties", {})
293 )
294 if "payment_provider_id" in validated_data:
295 if not (instance.payment_provider in instance.integrations): 296 instance.integrations[instance.payment_provider] = {}
297 instance.integrations[instance.payment_provider]["id"] = validated_data.get(
298 "payment_provider_id"
Extra parentheses in code can be removed for improved readability.
In the examples below, the first example is more readable than the second one.
Preferred:
if len(some_variable) + 1 < 1:
...
Not preferred:
if (len(some_variable) + 1) < 1:
...