Skip to content

Commit

Permalink
Replace table.getn with length operator (#63)
Browse files Browse the repository at this point in the history
  • Loading branch information
kmontag authored and mike-marcacci committed Nov 1, 2019
1 parent 75c0772 commit 955719d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions redlock.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ const lockScript = `
end
-- Return the number of entries added.
return table.getn(KEYS)
return #KEYS
`;

const unlockScript = `
Expand Down Expand Up @@ -51,7 +51,7 @@ const extendScript = `
end
-- Return the number of entries updated.
return table.getn(KEYS)
return #KEYS
`;

// defaults
Expand Down

0 comments on commit 955719d

Please sign in to comment.