Remove smelly unused parameter.
MODIFY
WalletWasabi.Tests/UnitTests/StoreTests.cs
WalletWasabi.Tests/UnitTests/StoreTests.cs
@@ -550,7 +550,9 @@ namespace WalletWasabi.Tests.UnitTests
DigestableSafeMutexIoManager ioman = new DigestableSafeMutexIoManager(file);
ioman.DeleteMe();
- await ioman.WriteAllLinesAsync(new string[0], dismissNullOrEmptyContent: false);
+ await ioman.WriteAllLinesAsync(new string[0]);
+ Assert.False(File.Exists(ioman.FilePath));
+ File.Create(ioman.FilePath).Dispose();
string RandomString()
{

MODIFY
WalletWasabi/Io/DigestableSafeMutexIoManager.cs
WalletWasabi/Io/DigestableSafeMutexIoManager.cs
@@ -46,15 +46,12 @@ namespace WalletWasabi.Io
}
}
- public new async Task WriteAllLinesAsync(IEnumerable<string> lines, CancellationToken cancellationToken = default, bool dismissNullOrEmptyContent = true)
- {
- if (dismissNullOrEmptyContent)
+ public new async Task WriteAllLinesAsync(IEnumerable<string> lines, CancellationToken cancellationToken = default)
{
if (lines is null || !lines.Any())
{
return;
}
- }
var byteArrayBuilder = new ByteArrayBuilder();
@@ -70,7 +67,7 @@ namespace WalletWasabi.Io
return;
}
- await base.WriteAllLinesAsync(lines, cancellationToken, dismissNullOrEmptyContent);
+ await base.WriteAllLinesAsync(lines, cancellationToken);
await WriteOutHashAsync(res.hash);
}

MODIFY
WalletWasabi/Io/SafeMutexIoManager.cs
WalletWasabi/Io/SafeMutexIoManager.cs
@@ -124,15 +124,12 @@ namespace WalletWasabi.Io
return TryGetSafestFileVersion(out _);
}
- public async Task WriteAllLinesAsync(IEnumerable<string> lines, CancellationToken cancellationToken = default, bool dismissNullOrEmptyContent = true)
- {
- if (dismissNullOrEmptyContent)
+ public async Task WriteAllLinesAsync(IEnumerable<string> lines, CancellationToken cancellationToken = default)
{
if (lines is null || !lines.Any())
{
return;
}
- }
IoHelpers.EnsureContainingDirectoryExists(NewFilePath);

Remove smelly unused parameter.