Skip to content

gallopLeft contains an apparently useless conditional #8

@pineapplemachine

Description

@pineapplemachine

https://github.com/mziccard/node-timsort/blob/master/src/timsort.js#L273

It appears that this condition can never be met, and could be removed.

Same goes for lines 291, 352, and 374.

edit: Unless this is intended to guard against integer overflow in the case of very large inputs?

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