clearer syntax
This commit is contained in:
parent
109f8a5d20
commit
d058523e9e
|
@ -391,7 +391,7 @@ function formatUserIds(options) {
|
|||
if (!util.isString(id.name) || (id.email && !util.isEmailAddress(id.email))) {
|
||||
throw new Error('Invalid user id format');
|
||||
}
|
||||
if (id.name) {
|
||||
if (id.name.length > 0) {
|
||||
id.name += ' ';
|
||||
}
|
||||
return id.name + '<' + id.email + '>';
|
||||
|
|
Loading…
Reference in New Issue
Block a user