Skip to content

duplicate method should new subclasses #2053

@dennisleung

Description

@dennisleung
Image

I think it should be new this.constructor instead of new Redis in the duplicate method; otherwise, subclasses that inherit from Redis will behave incorrectly.

So do Cluster.

Metadata

Metadata

Assignees

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