Allow printing users who lack email addresses
This commit is contained in:
parent
ebfa62ecda
commit
98d8f5392d
@ -566,8 +566,11 @@ zsp_path(PackageID = {Realm, _, _}) ->
|
||||
|
||||
-spec print_user({zx:user_name(), zx:real_name(), [zx:contact_info()]}) -> ok.
|
||||
|
||||
print_user({UserName, RealName, [{"email", Email}]}) ->
|
||||
io:format("~ts (~ts <~ts>) ~n", [UserName, RealName, Email]).
|
||||
print_user({UserName, RealName, ContactInfo}) ->
|
||||
case proplist:get_value("email", ContactInfo, none) of
|
||||
none -> io:format("~ts (~ts)~n", [UserName, RealName]);
|
||||
Email -> io:format("~ts (~ts) <~ts>~n", [UserName, RealName, Email])
|
||||
end.
|
||||
|
||||
|
||||
-spec find_latest_compatible(Version, Versions) -> Result
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user