aboutsummaryrefslogtreecommitdiff
path: root/Emby.Server.Implementations/Playlists
diff options
context:
space:
mode:
authorErwin de Haan <EraYaN@users.noreply.github.com>2019-01-13 21:37:13 +0100
committerErwin de Haan <EraYaN@users.noreply.github.com>2019-01-13 21:37:13 +0100
commit65bd052f3e8682d177520af57db1c8ef5cb33262 (patch)
treef5ec943937913cc7e275017e4a1055147d8ccef5 /Emby.Server.Implementations/Playlists
parenta36658f6f0ed342d8b55dbf7c9ff95fe3abfa818 (diff)
ReSharper conform to 'var' settings
Diffstat (limited to 'Emby.Server.Implementations/Playlists')
-rw-r--r--Emby.Server.Implementations/Playlists/PlaylistManager.cs6
1 files changed, 3 insertions, 3 deletions
diff --git a/Emby.Server.Implementations/Playlists/PlaylistManager.cs b/Emby.Server.Implementations/Playlists/PlaylistManager.cs
index 6dbefa910..c39897b53 100644
--- a/Emby.Server.Implementations/Playlists/PlaylistManager.cs
+++ b/Emby.Server.Implementations/Playlists/PlaylistManager.cs
@@ -469,12 +469,12 @@ namespace Emby.Server.Implementations.Playlists
folderPath = folderPath + Path.DirectorySeparatorChar;
}
- Uri folderUri = new Uri(folderPath);
- Uri fileAbsoluteUri = new Uri(fileAbsolutePath);
+ var folderUri = new Uri(folderPath);
+ var fileAbsoluteUri = new Uri(fileAbsolutePath);
if (folderUri.Scheme != fileAbsoluteUri.Scheme) { return fileAbsolutePath; } // path can't be made relative.
- Uri relativeUri = folderUri.MakeRelativeUri(fileAbsoluteUri);
+ var relativeUri = folderUri.MakeRelativeUri(fileAbsoluteUri);
string relativePath = Uri.UnescapeDataString(relativeUri.ToString());
if (fileAbsoluteUri.Scheme.Equals("file", StringComparison.CurrentCultureIgnoreCase))