Skip to content

Commit 39a9ea6

Browse files
committed
refactor: cleanup
1 parent 68ddc4c commit 39a9ea6

2 files changed

Lines changed: 6 additions & 7 deletions

File tree

src/ByteSync.Client/Interfaces/Repositories/IPropertyIndexer.cs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,9 @@
22

33
namespace ByteSync.Interfaces.Repositories;
44

5-
public interface IPropertyIndexer<TObject, in TIndex> where TObject : notnull
5+
public interface IPropertyIndexer<TObject, in TIndex>
6+
where TObject : notnull
7+
where TIndex : notnull
68
{
79
void Initialize(SourceCache<TObject, string> sourceCache, Func<TObject, TIndex> indexSelector);
810

src/ByteSync.Client/Repositories/PropertyIndexer.cs

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,15 +3,12 @@
33

44
namespace ByteSync.Repositories;
55

6-
public class PropertyIndexer<TObject, TIndex> : IPropertyIndexer<TObject, TIndex> where TObject : notnull
6+
public class PropertyIndexer<TObject, TIndex> : IPropertyIndexer<TObject, TIndex>
7+
where TObject : notnull
8+
where TIndex : notnull
79
{
810
private Func<TObject, TIndex> _indexSelector;
911
private readonly Dictionary<TIndex, List<TObject>> _cache = new();
10-
11-
public PropertyIndexer()
12-
{
13-
14-
}
1512

1613
public void Initialize(SourceCache<TObject, string> sourceCache, Func<TObject, TIndex> indexSelector)
1714
{

0 commit comments

Comments
 (0)