aboutsummaryrefslogtreecommitdiffstats
path: root/src/slskd/Shares/API/Controllers/SharesController.cs
diff options
context:
space:
mode:
authorJP Dillingham <jpdillingham@gmail.com>2022-05-27 00:58:57 -0500
committerJP Dillingham <jpdillingham@gmail.com>2022-05-27 00:58:57 -0500
commitc049c50f778c6129ead1d91e2bc3d2c88ba815e4 (patch)
treedea5d024e42a9ea60a3c99f5ed28cfb628d1eb43 /src/slskd/Shares/API/Controllers/SharesController.cs
parentdc61b2d0f43ee455c0c73bb0118918a77a124082 (diff)
downloadslskd-c049c50f778c6129ead1d91e2bc3d2c88ba815e4.tar.gz
tidy up
Diffstat (limited to 'src/slskd/Shares/API/Controllers/SharesController.cs')
-rw-r--r--src/slskd/Shares/API/Controllers/SharesController.cs10
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);
}