Skip to content

IS this code reachable? #350

@chris-ha458

Description

@chris-ha458

https://github.com/Ousret/charset_normalizer/blob/58f69f76983fc2042b4f47037c02d2d74ecec2cc/charset_normalizer/models.py#L58C16-L58C78

The outer if would mean that coherence_difference > 0.02
The inner if would require that self.coherence == other.coherence, in other words coherence_difference == 0.0

Am I misunderstanding the code? or was there a mistake here?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions