Skip to content

Commit

Permalink
Correct use of single or default
Browse files Browse the repository at this point in the history
  • Loading branch information
sei-bstein committed Oct 25, 2023
1 parent 15a5705 commit c4974a9
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ await _store.DoTransaction(async dbContext =>
// then assign a headless server to each team
foreach (var team in request.State.Teams)
{
var config = externalHostTeamConfigs.FirstOrDefault(t => t.TeamID == team.Team.Id);
var config = externalHostTeamConfigs.SingleOrDefault(t => t.TeamID == team.Team.Id);
if (config is null)
_logger.LogError($"""Team "{team.Team.Id}" wasn't assigned a headless URL by the external host (Gamebrain).""");
else
Expand Down

0 comments on commit c4974a9

Please sign in to comment.