1
0
mirror of https://github.com/redis/node-redis.git synced 2025-08-06 02:15:48 +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

@@ -16,7 +16,7 @@ redis.RedisClient.prototype.parse_info = function (callback) {
obj[parts[0]] = parts[1];
}
});
callback(obj)
callback(obj);
});
};

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.");
}

View File

@@ -1,9 +1,11 @@
'use strict';
var redis = require("redis"),
client = redis.createClient("/tmp/redis.sock"),
profiler = require("v8-profiler");
client.on("connect", function () {
console.log("Got Unix socket connection.")
console.log("Got Unix socket connection.");
});
client.on("error", function (err) {