Skip to content

Commit

Permalink
code smells
Browse files Browse the repository at this point in the history
  • Loading branch information
qdraw committed Jan 21, 2024
1 parent 5f6df4c commit 0a001a3
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,6 @@ private async Task SystemTrashInQueue(List<FileIndexItem> moveToTrash)
var fullFilePaths = moveToTrash
.Where(p => p.FilePath != null)
.Select(p => _appSettings.DatabasePathToFilePath(p.FilePath!))
.Cast<string>()
.ToList();

_systemTrashService.Trash(fullFilePaths);
Expand Down
4 changes: 1 addition & 3 deletions starsky/starskytest/Controllers/ExportControllerTest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -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;
Expand All @@ -66,7 +65,6 @@ public ExportControllerTest()

// Fake the readMeta output
services.AddSingleton<IReadMeta, FakeReadMeta>();


// Inject Config helper
services.AddSingleton<IConfiguration>(new ConfigurationBuilder().Build());
Expand Down

0 comments on commit 0a001a3

Please sign in to comment.