diff options
| author | Luke Pulverenti <luke.pulverenti@gmail.com> | 2013-04-10 11:56:36 -0400 |
|---|---|---|
| committer | Luke Pulverenti <luke.pulverenti@gmail.com> | 2013-04-10 11:56:36 -0400 |
| commit | ff1db0a17341345cb5d625b9a44d02981ce131bf (patch) | |
| tree | 93f6d3ce16da5f9b930aad05731d74f67f521521 /MediaBrowser.Controller/Entities/BaseItem.cs | |
| parent | d8263c70574c6cb27329e270aebe3ba231f5e9ce (diff) | |
resharper suggestions in controller project
Diffstat (limited to 'MediaBrowser.Controller/Entities/BaseItem.cs')
| -rw-r--r-- | MediaBrowser.Controller/Entities/BaseItem.cs | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/MediaBrowser.Controller/Entities/BaseItem.cs b/MediaBrowser.Controller/Entities/BaseItem.cs index e8e90b97a..4e63160fc 100644 --- a/MediaBrowser.Controller/Entities/BaseItem.cs +++ b/MediaBrowser.Controller/Entities/BaseItem.cs @@ -1,5 +1,4 @@ -using MediaBrowser.Common.Configuration; -using MediaBrowser.Common.Extensions; +using MediaBrowser.Common.Extensions; using MediaBrowser.Controller.Configuration; using MediaBrowser.Controller.IO; using MediaBrowser.Controller.Library; @@ -313,7 +312,7 @@ namespace MediaBrowser.Controller.Entities var path = Path; // non file-system entries will not have a path - if (this.LocationType != LocationType.FileSystem || string.IsNullOrEmpty(path)) + if (LocationType != LocationType.FileSystem || string.IsNullOrEmpty(path)) { return new ItemResolveArgs(ConfigurationManager.ApplicationPaths) { @@ -637,12 +636,12 @@ namespace MediaBrowser.Controller.Entities catch (IOException ex) { Logger.ErrorException("Error getting ResolveArgs for {0}", ex, Path); - return new List<Video> { }; + return new List<Video>(); } if (!resolveArgs.IsDirectory) { - return new List<Video> { }; + return new List<Video>(); } var folder = resolveArgs.GetFileSystemEntryByName(TrailerFolderName); @@ -650,7 +649,7 @@ namespace MediaBrowser.Controller.Entities // Path doesn't exist. No biggie if (folder == null) { - return new List<Video> { }; + return new List<Video>(); } IEnumerable<WIN32_FIND_DATA> files; @@ -662,7 +661,7 @@ namespace MediaBrowser.Controller.Entities catch (IOException ex) { Logger.ErrorException("Error loading trailers for {0}", ex, Name); - return new List<Video> { }; + return new List<Video>(); } return LibraryManager.ResolvePaths<Video>(files, null).Select(video => |
