Skip to content

Commit 67bc061

Browse files
MylesBorinsjoyeecheung
authored andcommitted
lib: don't print dash for users without names (#236)
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.
1 parent 92e3fb1 commit 67bc061

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

lib/team_info.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ function byLogin(a, b) {
99
}
1010

1111
function getContact({login, url, name, email}) {
12+
if (!name) return `- [@${login}](${url})`;
1213
return `- [@${login}](${url}) - ${name}`;
1314
}
1415

0 commit comments

Comments
 (0)