Skip to content

Redundant code in BaseTool.__init__ #736

@corranwebster

Description

@corranwebster

The first two lines of BaseTool.__init__ are redundant and will never be run. The can safely be removed.

enable/enable/base_tool.py

Lines 126 to 130 in 84f75d3

def __init__(self, component=None, **kwtraits):
if "component" in kwtraits:
component = kwtraits["component"]
super(BaseTool, self).__init__(**kwtraits)
self.component = component

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions