mirror of
https://github.com/jellyfin/jellyfin.git
synced 2024-09-06 03:26:07 +02:00
Merge ifs
This commit is contained in:
parent
41df562419
commit
f911fda34f
1 changed files with 3 additions and 6 deletions
|
@ -78,16 +78,13 @@ namespace Emby.Server.Implementations.IO
|
||||||
|
|
||||||
public virtual string MakeAbsolutePath(string folderPath, string filePath)
|
public virtual string MakeAbsolutePath(string folderPath, string filePath)
|
||||||
{
|
{
|
||||||
if (string.IsNullOrWhiteSpace(filePath))
|
if (string.IsNullOrWhiteSpace(filePath)
|
||||||
|
// stream
|
||||||
|
|| filePath.Contains("://"))
|
||||||
{
|
{
|
||||||
return filePath;
|
return filePath;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (filePath.Contains("://"))
|
|
||||||
{
|
|
||||||
return filePath; // stream
|
|
||||||
}
|
|
||||||
|
|
||||||
if (filePath.Length > 3 && filePath[1] == ':' && filePath[2] == '/')
|
if (filePath.Length > 3 && filePath[1] == ':' && filePath[2] == '/')
|
||||||
{
|
{
|
||||||
return filePath; // absolute local path
|
return filePath; // absolute local path
|
||||||
|
|
Loading…
Reference in a new issue