From 3cb1e600eea7cd656731d770215e908612088b26 Mon Sep 17 00:00:00 2001 From: Chris Blanchard Date: Fri, 31 Jul 2015 11:51:38 +0100 Subject: [PATCH] Simplify --- lib/react/user.jsx | 3 +-- public/js/app.js | 3 +-- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/lib/react/user.jsx b/lib/react/user.jsx index affcc9b..7d23002 100644 --- a/lib/react/user.jsx +++ b/lib/react/user.jsx @@ -16,7 +16,6 @@ var UserLogin = React.createClass({ if (!id) return; React.findDOMNode(this.refs.authorize_id).value = ''; this.authorizeId(id); - return; }, render: function () { return ( @@ -109,7 +108,7 @@ var CurrentUser = React.createClass({ user: data.currentUser }); }); - socket.emit("users:refresh", {}); + socket.emit("users:refresh"); }, render: function () { if (this.props.user) { diff --git a/public/js/app.js b/public/js/app.js index 27258eb..f058f69 100644 --- a/public/js/app.js +++ b/public/js/app.js @@ -775,7 +775,6 @@ var UserLogin = React.createClass({displayName: "UserLogin", if (!id) return; React.findDOMNode(this.refs.authorize_id).value = ''; this.authorizeId(id); - return; }, render: function () { return ( @@ -868,7 +867,7 @@ var CurrentUser = React.createClass({displayName: "CurrentUser", user: data.currentUser }); }); - socket.emit("users:refresh", {}); + socket.emit("users:refresh"); }, render: function () { if (this.props.user) {