diff options
| author | Bond-009 <bond.009@outlook.com> | 2019-03-07 15:54:30 +0100 |
|---|---|---|
| committer | Bond-009 <bond.009@outlook.com> | 2019-03-07 21:13:13 +0100 |
| commit | c5fce647defd2eace2d2431ccc52ffe1d027c184 (patch) | |
| tree | cafd17e6a1217c4283ce7c1b2bee3ac7e77850ab /MediaBrowser.Controller/Entities/ItemImageInfo.cs | |
| parent | 10a0d6bdba821449abfb1d48e9708ba6f3fc6a62 (diff) | |
Cleanup/simplification
* Removed useless copies/allocations
* Reduced unneeded complexity
Diffstat (limited to 'MediaBrowser.Controller/Entities/ItemImageInfo.cs')
| -rw-r--r-- | MediaBrowser.Controller/Entities/ItemImageInfo.cs | 16 |
1 files changed, 2 insertions, 14 deletions
diff --git a/MediaBrowser.Controller/Entities/ItemImageInfo.cs b/MediaBrowser.Controller/Entities/ItemImageInfo.cs index ff6b13398..848493864 100644 --- a/MediaBrowser.Controller/Entities/ItemImageInfo.cs +++ b/MediaBrowser.Controller/Entities/ItemImageInfo.cs @@ -25,22 +25,10 @@ namespace MediaBrowser.Controller.Entities public DateTime DateModified { get; set; } public int Width { get; set; } + public int Height { get; set; } [IgnoreDataMember] - public bool IsLocalFile - { - get - { - if (Path != null) - { - if (Path.StartsWith("http", StringComparison.OrdinalIgnoreCase)) - { - return false; - } - } - return true; - } - } + public bool IsLocalFile => Path == null || !Path.StartsWith("http", StringComparison.OrdinalIgnoreCase); } } |
