From 5f7f5a37c12ef7f66db2c9567d8743fee6cf4037 Mon Sep 17 00:00:00 2001 From: psychobunny Date: Tue, 11 Mar 2014 14:48:35 -0400 Subject: [PATCH] linting --- src/socket.io/posts.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/socket.io/posts.js b/src/socket.io/posts.js index 2734106469..99103fb340 100644 --- a/src/socket.io/posts.js +++ b/src/socket.io/posts.js @@ -1,3 +1,5 @@ +"use strict"; + var async = require('async'), nconf = require('nconf'), @@ -278,7 +280,7 @@ SocketPosts.flag = function(socket, pid, callback) { posts.getPostField(pid, 'tid', next); }, function(tid, next) { - topics.getTopicField(tid, 'slug', next) + topics.getTopicField(tid, 'slug', next); }, function(topicSlug, next) { path = nconf.get('relative_path') + '/topic/' + topicSlug + '#' + pid; @@ -297,7 +299,7 @@ SocketPosts.flag = function(socket, pid, callback) { }); } ], callback); -} +}; SocketPosts.loadMoreFavourites = function(socket, data, callback) { if(!data || !data.after) {