From 07fdeebe17929e3f1feb74940cf2d401474983a1 Mon Sep 17 00:00:00 2001 From: ansuz Date: Tue, 12 Apr 2016 14:50:32 +0200 Subject: [PATCH] LogStore.js : JSHint compliance and slight reformat --- storage/LogStore.js | 30 ++++++++++++++---------------- 1 file changed, 14 insertions(+), 16 deletions(-) diff --git a/storage/LogStore.js b/storage/LogStore.js index 4f1b7ad6f..d588c82f5 100644 --- a/storage/LogStore.js +++ b/storage/LogStore.js @@ -1,20 +1,18 @@ - var Fs = require("fs"); +var Fs = require("fs"); - var message = function(file, msg) { - file.write(msg+"\n"); - } +var message = function(file, msg) { + file.write(msg+"\n"); +}; - var create = module.exports.create = function(filePath, backingStore) { +var create = module.exports.create = function(filePath, backingStore) { - var file = Fs.createWriteStream(filePath, {flags: 'a+'}); + var file = Fs.createWriteStream(filePath, {flags: 'a+'}); - return { - message: function(channel, msg, callback) { - message(file, msg); - backingStore.message(channel, msg, callback); - }, - getMessages: backingStore.getMessages - } - - } - + return { + message: function(channel, msg, callback) { + message(file, msg); + backingStore.message(channel, msg, callback); + }, + getMessages: backingStore.getMessages + }; +};