Skip to content

Commit 541b15d

Browse files
authored
fix/docs(readme): javascript truthy shenanigans (#1976)
1 parent 9e435a4 commit 541b15d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1149,7 +1149,7 @@ const cluster = new Redis.Cluster(
11491149
],
11501150
{
11511151
natMap: (key) => {
1152-
if(key.indexOf('30001')) {
1152+
if(key.includes('30001')) {
11531153
return { host: "203.0.113.73", port: 30001 };
11541154
}
11551155

0 commit comments

Comments
 (0)