mirror of
https://github.com/collinbarrett/FilterLists.git
synced 2026-03-11 09:04:27 +00:00
refactor(archival): ♻ improve IDisposable implementation per S3881
https://rules.sonarsource.com/csharp/RSPEC-3881
This commit is contained in:
parent
99b9e767f2
commit
d3b029be84
1 changed files with 1 additions and 7 deletions
|
|
@ -10,7 +10,7 @@
|
|||
|
||||
namespace FilterLists.Archival.Infrastructure.Persistence
|
||||
{
|
||||
internal class GitFileArchiver : IArchiveFiles
|
||||
internal sealed class GitFileArchiver : IArchiveFiles
|
||||
{
|
||||
private readonly IList<string> _filePaths = new List<string>();
|
||||
private readonly ILogger _logger;
|
||||
|
|
@ -52,12 +52,6 @@ public void Commit()
|
|||
}
|
||||
|
||||
public void Dispose()
|
||||
{
|
||||
Dispose(true);
|
||||
GC.SuppressFinalize(this);
|
||||
}
|
||||
|
||||
protected virtual void Dispose(bool disposing)
|
||||
{
|
||||
foreach (var file in _filePaths)
|
||||
{
|
||||
|
|
|
|||
Loading…
Reference in a new issue