uselotus / lotus

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

Unnecessary elif / else block after continue PYL-R1724
Style
Major
a year agoa year old
Unnecessary "elif" after "continue", remove the leading "el" from "elif"
 664                        total_limit = tiers[-1].range_end
 665                        subscription_id = sub.subscription_id
 666                        metric_usage = metric.get_current_usage(sub)
 667                        if metric_usage is None: 668                            continue
 669                        elif metric_usage == {}:
 670                            unique_tup_dict = {
Unnecessary "elif" after "continue", remove the leading "el" from "elif"
462            )
463            matching_plans = list(filter(lambda x: x[1] & item_ids, lotus_plans))
464            # if no plans match any of the items, don't transfer
465            if len(matching_plans) == 0:466                continue
467            # great, in this case we transfer the subscription
468            elif len(matching_plans) == 1: