Merge ifs

This commit is contained in:
Bond_009 2019-03-29 20:34:42 +01:00
parent 41df562419
commit f911fda34f

View file

@ -78,16 +78,13 @@ namespace Emby.Server.Implementations.IO
public virtual string MakeAbsolutePath(string folderPath, string filePath)
{
if (string.IsNullOrWhiteSpace(filePath))
if (string.IsNullOrWhiteSpace(filePath)
// stream
|| filePath.Contains("://"))
{
return filePath;
}
if (filePath.Contains("://"))
{
return filePath; // stream
}
if (filePath.Length > 3 && filePath[1] == ':' && filePath[2] == '/')
{
return filePath; // absolute local path