Use index access instead of LINQ.

This commit is contained in:
Patrick Barron 2020-08-17 21:42:59 -04:00
parent a77cf53573
commit 6f88087fa9

View File

@ -1,6 +1,5 @@
using System; using System;
using System.Globalization; using System.Globalization;
using System.Linq;
using System.Threading.Tasks; using System.Threading.Tasks;
using Jellyfin.Data.Entities; using Jellyfin.Data.Entities;
using MediaBrowser.Controller.Events; using MediaBrowser.Controller.Events;
@ -56,7 +55,7 @@ namespace Jellyfin.Server.Implementations.Events.Consumers.Session
return; return;
} }
var user = eventArgs.Users.First(); var user = eventArgs.Users[0];
await _activityManager.CreateAsync(new ActivityLog( await _activityManager.CreateAsync(new ActivityLog(
string.Format( string.Format(