diff --git a/starsky/starsky.feature.trash/Services/MoveToTrashService.cs b/starsky/starsky.feature.trash/Services/MoveToTrashService.cs index 59531d5653..457a417774 100644 --- a/starsky/starsky.feature.trash/Services/MoveToTrashService.cs +++ b/starsky/starsky.feature.trash/Services/MoveToTrashService.cs @@ -147,7 +147,6 @@ private async Task SystemTrashInQueue(List moveToTrash) var fullFilePaths = moveToTrash .Where(p => p.FilePath != null) .Select(p => _appSettings.DatabasePathToFilePath(p.FilePath!)) - .Cast() .ToList(); _systemTrashService.Trash(fullFilePaths); diff --git a/starsky/starskytest/Controllers/ExportControllerTest.cs b/starsky/starskytest/Controllers/ExportControllerTest.cs index 630a152787..3c0e1aefd5 100644 --- a/starsky/starskytest/Controllers/ExportControllerTest.cs +++ b/starsky/starskytest/Controllers/ExportControllerTest.cs @@ -15,7 +15,6 @@ using starsky.Controllers; using starsky.feature.export.Services; using starsky.foundation.database.Data; -using starsky.foundation.database.Interfaces; using starsky.foundation.database.Models; using starsky.foundation.database.Query; using starsky.foundation.platform.Extensions; @@ -39,7 +38,7 @@ namespace starskytest.Controllers [TestClass] public sealed class ExportControllerTest { - private readonly IQuery _query; + private readonly Query _query; private readonly AppSettings _appSettings; private readonly CreateAnImage _createAnImage; private readonly IUpdateBackgroundTaskQueue _bgTaskQueue; @@ -66,7 +65,6 @@ public ExportControllerTest() // Fake the readMeta output services.AddSingleton(); - // Inject Config helper services.AddSingleton(new ConfigurationBuilder().Build());