Skip to content

Commit cc48de8

Browse files
authored
consistent ;s
1 parent 1a4c410 commit cc48de8

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

README.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -437,19 +437,19 @@ protocol. Any commands where client state is saved on the Redis server, e.g.
437437
`*SUBSCRIBE` or the blocking `BL*` commands will *NOT* work with `.unref()`.
438438

439439
```js
440-
var redis = require("redis")
441-
var client = redis.createClient()
440+
var redis = require("redis");
441+
var client = redis.createClient();
442442

443443
/*
444444
Calling unref() will allow this program to exit immediately after the get
445445
command finishes. Otherwise the client would hang as long as the
446446
client-server connection is alive.
447447
*/
448-
client.unref()
449-
client.get("foo", function (err, value){
450-
if (err) throw(err)
451-
console.log(value)
452-
})
448+
client.unref();
449+
client.get("foo", function (err, value) {
450+
if (err) throw(err);
451+
console.log(value);
452+
});
453453
```
454454

455455
## Friendlier hash commands

0 commit comments

Comments
 (0)