uselotus / lotus

File .deepsource.toml not found in the default branch of the repository root. Please refer to the docs.

Unnecessary else/elif used after raise PYL-R1720
Style
Minor
a year agoa year old
Unnecessary "else" after "raise", remove the "else" and de-indent the code inside it
 848        if data.get("plan_components"):
 849            component_metrics = []
 850            for component in data.get("plan_components"):
 851                if component.get("billable_metric") in component_metrics: 852                    raise serializers.ValidationError(
 853                        "Plan components must have unique metrics."
 854                    )