Skip to content

[Improvement] Adapters: Remove duplicate code #106

@EsipovPA

Description

@EsipovPA

Current state
It seems to me that the code in the methods __load_tree of the inotifyTree and inotifyTrees classes is being duplicated.
If I'm not being wrong, it is possible to convert this code into a method of the parent class __BaseTree and add some more parameters for child classes to call it, like debug_message.

Better way to do it?
Move duplicated code to __BaseTree class. Maybe do some refactoring.

Motivation
Better readability, easier support.

TODO?
If nobody is up to this, and nobody is against it, I'm willing to add this myself.

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