Skip to content

Commit 66f55df

Browse files
jmdjmd
jmd
authored and
jmd
committed
do not throw on reset.
1 parent b86525d commit 66f55df

File tree

2 files changed

+0
-6
lines changed

2 files changed

+0
-6
lines changed

src/DotJEM.Json.Index2.Management/IJsonIndexManager.cs

-3
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,6 @@ public async Task ResetIndexAsync()
111111
{
112112
index.Storage.Delete();
113113
await jsonDocumentSource.ResetAsync().ConfigureAwait(false);
114-
115114
}
116115

117116
private void CaptureChange(IJsonDocumentSourceEvent sourceEvent)
@@ -132,8 +131,6 @@ private void CaptureChange(IJsonDocumentSourceEvent sourceEvent)
132131
case JsonDocumentUpdated updated:
133132
writer.Update(updated.Document);
134133
break;
135-
default:
136-
throw new ArgumentOutOfRangeException(nameof(sourceEvent));
137134
}
138135

139136
changesStream.Publish(sourceEvent);

src/DotJEM.Json.Index2/Storage/IJsonIndexStorageManager.cs

-3
Original file line numberDiff line numberDiff line change
@@ -74,9 +74,6 @@ public void Delete()
7474
Unlock();
7575
foreach (string file in Directory.ListAll())
7676
Directory.DeleteFile(file);
77-
//Directory.Dispose();
78-
//Directory = null;
79-
8077
provider.Delete();
8178
}
8279
}

0 commit comments

Comments
 (0)