Skip to content

Commit

Permalink
lib: don't print dash for users without names (nodejs#236)
Browse files Browse the repository at this point in the history
when logging team data we currently include a dash between
the profile name / link and the account name. If the account
name is blank, we still include the dash. This patch changes
the behavior to remove the dash in cases that the name
is blank.
  • Loading branch information
MylesBorins authored and joyeecheung committed Apr 17, 2018
1 parent 92e3fb1 commit 67bc061
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/team_info.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ function byLogin(a, b) {
}

function getContact({login, url, name, email}) {
if (!name) return `- [@${login}](${url})`;
return `- [@${login}](${url}) - ${name}`;
}

Expand Down

0 comments on commit 67bc061

Please sign in to comment.