Remove unnecessary return statement and expression.
This commit is contained in:
parent
df0c55ed4d
commit
18fd854dc4
@ -1747,8 +1747,7 @@
|
||||
},
|
||||
|
||||
addContact: function (jid, name) {
|
||||
name = _.isEmpty(name)? jid: name;
|
||||
converse.connection.roster.add(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'));
|
||||
});
|
||||
}
|
||||
@ -5548,7 +5547,6 @@
|
||||
converse.connection.roster.add(jid, _.isEmpty(name)? jid: name, [], function (iq) {
|
||||
converse.connection.roster.subscribe(jid, null, converse.xmppstatus.get('fullname'));
|
||||
});
|
||||
return true;
|
||||
}
|
||||
},
|
||||
'chats': {
|
||||
|
Loading…
Reference in New Issue
Block a user