mirror of
https://github.com/Prowlarr/Prowlarr.git
synced 2025-09-17 17:14:18 +02:00
cleaned up DirectoryLookupService
This commit is contained in:
@@ -1,6 +1,4 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.IO;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using Nancy;
|
||||
using NzbDrone.Api.Extensions;
|
||||
@@ -26,10 +24,9 @@ namespace NzbDrone.Api.Directories
|
||||
|
||||
string query = Request.Query.query.Value;
|
||||
|
||||
var dirs = _directoryLookupService.LookupSubDirectories(query);
|
||||
|
||||
if (dirs == null)
|
||||
throw new Exception("A valid path was not provided");
|
||||
var dirs = _directoryLookupService.LookupSubDirectories(query)
|
||||
.Select(p => p.GetActualCasing())
|
||||
.ToList();
|
||||
|
||||
return dirs.AsResponse();
|
||||
}
|
||||
|
Reference in New Issue
Block a user