Skip to content

Commit

Permalink
Merge pull request #1527 from heynikhil/patch-1
Browse files Browse the repository at this point in the history
Update README.md
  • Loading branch information
gkorland committed Mar 4, 2021
2 parents 232f191 + 53f1468 commit c78b6d5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Expand Up @@ -638,7 +638,7 @@ client.watch("foo", function(watchError) {
* If err is null, it means Redis successfully attempted
* the operation.
*/
if (execError) throw err;
if (execError) throw execError;

/**
* If results === null, it means that a concurrent client
Expand Down Expand Up @@ -675,7 +675,7 @@ clients.watcher.watch("foo", function(watchError) {

// if you comment out the next line, the transaction will work
clients.modifier.set("foo", Math.random(), setError => {
if (setError) throw err;
if (setError) throw setError;
});

// using a setTimeout here to ensure that the MULTI/EXEC will come after the SET.
Expand Down

0 comments on commit c78b6d5

Please sign in to comment.