Skip to content

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

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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