Use index access instead of LINQ.
This commit is contained in:
parent
a77cf53573
commit
6f88087fa9
|
@ -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(
|
||||||
|
|
Loading…
Reference in New Issue
Block a user