diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/slskd/Shares/API/Controllers/SharesController.cs | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/src/slskd/Shares/API/Controllers/SharesController.cs b/src/slskd/Shares/API/Controllers/SharesController.cs index c569a150..d6a31c4e 100644 --- a/src/slskd/Shares/API/Controllers/SharesController.cs +++ b/src/slskd/Shares/API/Controllers/SharesController.cs @@ -104,14 +104,8 @@ namespace slskd.Shares.API return NotFound(); } - var browse = Shares.Cache.Browse(); - - foreach (var dir in browse) - { - Console.WriteLine($"{dir.Name} ?? ${share.RemotePath}"); - } - - var contents = Shares.Cache.Browse().Where(directory => directory.Name.StartsWith(share.RemotePath)); + var contents = Shares.Cache.Browse() + .Where(directory => directory.Name.StartsWith(share.RemotePath)); return Ok(contents); } |
