1
0
mirror of https://github.com/redis/node-redis.git synced 2025-08-04 15:02:09 +03:00

Add simicolons

This is just a style change
This commit is contained in:
Ruben Bridgewater
2015-07-22 16:19:02 +02:00
parent 1f9e536ca0
commit a2bc597212
8 changed files with 37 additions and 33 deletions

View File

@@ -13,9 +13,9 @@ var redis = require("redis"),
// Read a file from fs, store it in Redis, get it back from Redis, write it back to fs.
fs.readFile(filename, function (err, data) {
if (err) throw err
if (err) throw err;
console.log("Read " + data.length + " bytes from filesystem.");
client.set(filename, data, redis.print); // set entire file
client.get(filename, function (err, reply) { // get entire file
if (err) {
@@ -23,7 +23,7 @@ fs.readFile(filename, function (err, data) {
} else {
fs.writeFile("duplicate_" + filename, reply, function (err) {
if (err) {
console.log("Error on write: " + err)
console.log("Error on write: " + err);
} else {
console.log("File written.");
}