Skip to content

same execution regardless of value? #4

@ghost

Description

try:
    if options.func == do_register_client:
        conn = admin_conn
    else:
        conn = admin_conn
    result = options.func(options, conn)

What's the purpose of this? the conn = admin_conn executes regardless (both if and else execute it).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions