Skip to content

Commit

Permalink
Merge branch 'master' into auth_pwd_user
Browse files Browse the repository at this point in the history
  • Loading branch information
leibale committed Mar 4, 2021
2 parents 20fb4ff + c78b6d5 commit fe0ef9e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -394,7 +394,7 @@ responses using JavaScript syntax.
```js
client.hmset("key", "foo", "bar", "hello", "world");

client.hgetall("hosts", function(err, value) {
client.hgetall("key", function(err, value) {
console.log(value.foo); // > "bar"
console.log(value.hello); // > "world"
});
Expand Down 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 fe0ef9e

Please sign in to comment.