aboutsummaryrefslogtreecommitdiff
path: root/MediaBrowser.Api
diff options
context:
space:
mode:
authorErwin de Haan <EraYaN@users.noreply.github.com>2019-01-17 20:24:39 +0100
committerErwin de Haan <EraYaN@users.noreply.github.com>2019-01-17 20:24:39 +0100
commit38f96af079887cce7c38fcde8340fd7c6d1150ad (patch)
tree32f2a7bdc6e0789bb9af34599234e99bcb2b9187 /MediaBrowser.Api
parent321c440739ae7657349c6a8e672a88bea1d6753c (diff)
Reformat JustAMan review pt2 changes
Refs #575
Diffstat (limited to 'MediaBrowser.Api')
-rw-r--r--MediaBrowser.Api/ApiEntryPoint.cs2
-rw-r--r--MediaBrowser.Api/IHasDtoOptions.cs1
-rw-r--r--MediaBrowser.Api/Library/LibraryService.cs2
3 files changed, 2 insertions, 3 deletions
diff --git a/MediaBrowser.Api/ApiEntryPoint.cs b/MediaBrowser.Api/ApiEntryPoint.cs
index 4e2380cfa..8ae0ad942 100644
--- a/MediaBrowser.Api/ApiEntryPoint.cs
+++ b/MediaBrowser.Api/ApiEntryPoint.cs
@@ -101,7 +101,7 @@ namespace MediaBrowser.Api
{
lock (_transcodingLocks)
{
- if (!_transcodingLocks.TryGetValue(outputPath, out var result))
+ if (!_transcodingLocks.TryGetValue(outputPath, out SemaphoreSlim result))
{
result = new SemaphoreSlim(1, 1);
_transcodingLocks[outputPath] = result;
diff --git a/MediaBrowser.Api/IHasDtoOptions.cs b/MediaBrowser.Api/IHasDtoOptions.cs
index c51043c5f..03d3b3692 100644
--- a/MediaBrowser.Api/IHasDtoOptions.cs
+++ b/MediaBrowser.Api/IHasDtoOptions.cs
@@ -1,4 +1,3 @@
-
namespace MediaBrowser.Api
{
public interface IHasDtoOptions : IHasItemFields
diff --git a/MediaBrowser.Api/Library/LibraryService.cs b/MediaBrowser.Api/Library/LibraryService.cs
index 1248f7316..12d807a7e 100644
--- a/MediaBrowser.Api/Library/LibraryService.cs
+++ b/MediaBrowser.Api/Library/LibraryService.cs
@@ -902,7 +902,7 @@ namespace MediaBrowser.Api.Library
var dtoOptions = GetDtoOptions(_authContext, request);
- var parent = item.GetParent();
+ BaseItem parent = item.GetParent();
while (parent != null)
{