mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-03-20 09:06:38 +00:00
Use index access instead of LINQ.
This commit is contained in:
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user