mirror of
https://github.com/jellyfin/jellyfin.git
synced 2024-07-24 22:48:56 +02:00
Simplify return statements
This commit is contained in:
parent
a9806d8f4a
commit
d983d65d8a
|
@ -244,12 +244,7 @@ namespace Jellyfin.Drawing.Skia
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (HasDiacritics(path))
|
return HasDiacritics(path);
|
||||||
{
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
|
|
||||||
return false;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
private string NormalizePath(string path)
|
private string NormalizePath(string path)
|
||||||
|
@ -349,12 +344,7 @@ namespace Jellyfin.Drawing.Skia
|
||||||
if (cropWhitespace)
|
if (cropWhitespace)
|
||||||
{
|
{
|
||||||
using var bitmap = Decode(path, forceAnalyzeBitmap, orientation, out origin);
|
using var bitmap = Decode(path, forceAnalyzeBitmap, orientation, out origin);
|
||||||
if (bitmap == null)
|
return bitmap == null ? null : CropWhiteSpace(bitmap);
|
||||||
{
|
|
||||||
return null;
|
|
||||||
}
|
|
||||||
|
|
||||||
return CropWhiteSpace(bitmap);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
return Decode(path, forceAnalyzeBitmap, orientation, out origin);
|
return Decode(path, forceAnalyzeBitmap, orientation, out origin);
|
||||||
|
|
Loading…
Reference in a new issue