Remove unnecessary return statement and expression.

This commit is contained in:
JC Brand 2015-04-05 17:09:14 +02:00
parent df0c55ed4d
commit 18fd854dc4

View File

@ -1747,8 +1747,7 @@
}, },
addContact: function (jid, name) { addContact: function (jid, name) {
name = _.isEmpty(name)? jid: name; converse.connection.roster.add(jid, _.isEmpty(name)? jid: name, [], function (iq) {
converse.connection.roster.add(jid, name, [], function (iq) {
converse.connection.roster.subscribe(jid, null, converse.xmppstatus.get('fullname')); converse.connection.roster.subscribe(jid, null, converse.xmppstatus.get('fullname'));
}); });
} }
@ -5548,7 +5547,6 @@
converse.connection.roster.add(jid, _.isEmpty(name)? jid: name, [], function (iq) { converse.connection.roster.add(jid, _.isEmpty(name)? jid: name, [], function (iq) {
converse.connection.roster.subscribe(jid, null, converse.xmppstatus.get('fullname')); converse.connection.roster.subscribe(jid, null, converse.xmppstatus.get('fullname'));
}); });
return true;
} }
}, },
'chats': { 'chats': {