diff options
| author | Patrick Barron <barronpm@gmail.com> | 2020-04-05 12:45:01 -0400 |
|---|---|---|
| committer | Patrick Barron <barronpm@gmail.com> | 2020-04-05 12:45:01 -0400 |
| commit | 961f48f5bcc8e4f1e0c3ac5e3c2757bbd14b6a9d (patch) | |
| tree | a68d6012dc26026b589187d2c54adaf854522ed7 /MediaBrowser.Api/Library/LibraryStructureService.cs | |
| parent | 6a3f9253db8b7886e020d84ed82d9ad45f3d3350 (diff) | |
Use ? and ?? where applicable
Diffstat (limited to 'MediaBrowser.Api/Library/LibraryStructureService.cs')
| -rw-r--r-- | MediaBrowser.Api/Library/LibraryStructureService.cs | 12 |
1 files changed, 4 insertions, 8 deletions
diff --git a/MediaBrowser.Api/Library/LibraryStructureService.cs b/MediaBrowser.Api/Library/LibraryStructureService.cs index c071b42f7..1e300814f 100644 --- a/MediaBrowser.Api/Library/LibraryStructureService.cs +++ b/MediaBrowser.Api/Library/LibraryStructureService.cs @@ -327,15 +327,11 @@ namespace MediaBrowser.Api.Library try { - var mediaPath = request.PathInfo; - - if (mediaPath == null) + var mediaPath = request.PathInfo ?? new MediaPathInfo { - mediaPath = new MediaPathInfo - { - Path = request.Path - }; - } + Path = request.Path + }; + _libraryManager.AddMediaPath(request.Name, mediaPath); } finally |
