mirror of
https://github.com/jellyfin/jellyfin.git
synced 2024-11-15 18:08:53 -07:00
Use index access instead of LINQ.
This commit is contained in:
parent
a77cf53573
commit
6f88087fa9
@ -1,6 +1,5 @@
|
||||
using System;
|
||||
using System.Globalization;
|
||||
using System.Linq;
|
||||
using System.Threading.Tasks;
|
||||
using Jellyfin.Data.Entities;
|
||||
using MediaBrowser.Controller.Events;
|
||||
@ -56,7 +55,7 @@ namespace Jellyfin.Server.Implementations.Events.Consumers.Session
|
||||
return;
|
||||
}
|
||||
|
||||
var user = eventArgs.Users.First();
|
||||
var user = eventArgs.Users[0];
|
||||
|
||||
await _activityManager.CreateAsync(new ActivityLog(
|
||||
string.Format(
|
||||
|
Loading…
Reference in New Issue
Block a user