Skip to content

Is identical error object check necessary here? #38

@jjb

Description

@jjb

The test suite passes with this change (just a demo): https://github.com/jjb/timeout/pull/6/files

If that's acceptable, then the code can be cleaned up like so, with the benefits of being more readable and also creating fewer objects per invocation: https://github.com/jjb/timeout/pull/5/files

If it's not acceptable, I could make a PR which adds a test.

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