Skip to content

Commit

Permalink
use IDictionary again
Browse files Browse the repository at this point in the history
  • Loading branch information
pacna committed Jan 23, 2024
1 parent b75eaeb commit 66f7d24
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ namespace Edge.MyMusic.Repositories;

internal class MusicInMemoryRepository : IMusicRepository
{
private readonly static ConcurrentDictionary<string, MusicDocument> _datastore;
private readonly static IDictionary<string, MusicDocument> _datastore;

static MusicInMemoryRepository()
{
Expand Down Expand Up @@ -134,7 +134,7 @@ public Task<MusicDocument> AddMusicAsync(MusicDocument doc)

public Task DeleteMusicAsync(string id)
{
_datastore.Remove(id, out MusicDocument? _);
_datastore.Remove(id);
return Task.CompletedTask;
}

Expand Down

0 comments on commit 66f7d24

Please sign in to comment.