Skip to content

Commit

Permalink
Use Contains(char)
Browse files Browse the repository at this point in the history
  • Loading branch information
Jericho committed Dec 30, 2022
1 parent 3971c9c commit b65b897
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Source/ZoomNet/Resources/Roles.cs
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ public Task AssignUsersAsync(string roleId, IEnumerable<string> userIds, Cancell
{
// Zoom requires either the "id" field or the "email" field.
// If both are provided, "id" takes precedence.
{ "members", userIds.Select(id => new JsonObject { { (id ?? string.Empty).Contains("@") ? "email" : "id", id } }).ToArray() }
{ "members", userIds.Select(id => new JsonObject { { (id ?? string.Empty).Contains('@') ? "email" : "id", id } }).ToArray() }
};

return _client
Expand Down

0 comments on commit b65b897

Please sign in to comment.