add code suggestions

This commit is contained in:
dkanada 2020-02-04 01:29:18 +09:00
parent 1bc8ca2542
commit f93edb7ade
2 changed files with 3 additions and 1 deletions

View File

@ -1494,7 +1494,7 @@ namespace Emby.Server.Implementations.Session
{
Limit = 1,
AccessToken = accessToken
}).Items[0];
}).Items.FirstOrDefault();
if (existing != null)
{

View File

@ -1,5 +1,6 @@
using System;
using System.Linq;
using System.Text.Json.Serialization;
using System.Threading;
using MediaBrowser.Controller.Entities;
using MediaBrowser.Model.Dto;
@ -124,6 +125,7 @@ namespace MediaBrowser.Controller.Session
/// Gets or sets the session controller.
/// </summary>
/// <value>The session controller.</value>
[JsonIgnore]
public ISessionController[] SessionControllers { get; set; }
/// <summary>