Skip to content

this.ttl is always undefined on LRUCache.js #6475

Closed
@yomybaby

Description

@yomybaby

Hi, I found some thing which is never used.

Please check the 16th line of LRUCache.js.

this.ttl is always undefined. it is never assigned. Even this is undefined, LRU use default TTL when put.(https://www.npmjs.com/package/lru-cache#api) So undefined doesn't make problems.

But this.ttl is never used. So it should be removed.

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