Cleanup code according to CodeMaid
MODIFY
WalletWasabi.Backend/Controllers/BlockchainController.cs
WalletWasabi.Backend/Controllers/BlockchainController.cs
@@ -291,8 +291,7 @@ namespace WalletWasabi.Backend.Controllers
return NoContent();
}
- var response = new FiltersResponse
- {
+ var response = new FiltersResponse {
BestHeight = bestHeight,
Filters = filters
};

MODIFY
WalletWasabi.Tests/ExtPubKeyExplorerTests.cs
WalletWasabi.Tests/ExtPubKeyExplorerTests.cs
@@ -111,8 +111,7 @@ namespace WalletWasabi.Tests
.SetP(20);
builder.AddEntries(scripts);
- return new FilterModel
- {
+ return new FilterModel {
BlockHeight = 0,
BlockHash = new uint256(blockHash),
Filter = builder.Build()

MODIFY
WalletWasabi/Backend/Models/FilterModel.cs
WalletWasabi/Backend/Models/FilterModel.cs
@@ -78,8 +78,7 @@ namespace WalletWasabi.Backend.Models
if (Height.TryParse(parts[0], out Height blockHeight))
{
- return new FilterModel
- {
+ return new FilterModel {
BlockHeight = blockHeight,
BlockHash = new uint256(parts[1]),
Filter = filter
@@ -98,8 +97,7 @@ namespace WalletWasabi.Backend.Models
if (parts.Length == 1) // no bech here
{
- return new FilterModel
- {
+ return new FilterModel {
BlockHeight = Guard.NotNull(nameof(height), height),
BlockHash = new uint256(parts[0]),
Filter = null
@@ -109,8 +107,7 @@ namespace WalletWasabi.Backend.Models
var data = Encoders.Hex.DecodeData(parts[1]);
var filter = new GolombRiceFilter(data, 20, 1 << 20);
- return new FilterModel
- {
+ return new FilterModel {
BlockHeight = Guard.NotNull(nameof(height), height),
BlockHash = new uint256(parts[0]),
Filter = filter
@@ -136,8 +133,7 @@ namespace WalletWasabi.Backend.Models
byte[] data = stream.ReadBytes(filterSize);
GolombRiceFilter filter = filterSize > 0 ? new GolombRiceFilter(data, 20, 1 << 20) : null;
- return new FilterModel
- {
+ return new FilterModel {
BlockHeight = Guard.NotNull(nameof(height), height),
BlockHash = blockHash,
Filter = filter

MODIFY
WalletWasabi/Gma/QrCodeNet/Encoding/DataEncodation/DataEncode.cs
WalletWasabi/Gma/QrCodeNet/Encoding/DataEncodation/DataEncode.cs
@@ -48,8 +48,7 @@ namespace Gma.QrCodeNet.Encoding.DataEncodation
throw new ArgumentException("datacodewords num of bytes not equal to NumDataBytes for current version");
}
- var encStruct = new EncodationStruct(vcStruct)
- {
+ var encStruct = new EncodationStruct(vcStruct) {
DataCodewords = dataCodewords
};
return encStruct;
@@ -91,8 +90,7 @@ namespace Gma.QrCodeNet.Encoding.DataEncodation
throw new ArgumentException("datacodewords num of bytes not equal to NumDataBytes for current version");
}
- var encStruct = new EncodationStruct(vcStruct)
- {
+ var encStruct = new EncodationStruct(vcStruct) {
DataCodewords = dataCodewords
};
return encStruct;

MODIFY
WalletWasabi/Http/Models/HeaderSection.cs
WalletWasabi/Http/Models/HeaderSection.cs
@@ -125,8 +125,7 @@ namespace WalletWasabi.Http.Models
public HttpRequestContentHeaders ToHttpRequestHeaders()
{
- using (var message = new HttpRequestMessage
- {
+ using (var message = new HttpRequestMessage {
Content = new ByteArrayContent(new byte[] { })
})
{
@@ -143,8 +142,7 @@ namespace WalletWasabi.Http.Models
}
}
- return new HttpRequestContentHeaders
- {
+ return new HttpRequestContentHeaders {
RequestHeaders = message.Headers,
ContentHeaders = message.Content.Headers
};
@@ -153,8 +151,7 @@ namespace WalletWasabi.Http.Models
public HttpResponseContentHeaders ToHttpResponseHeaders()
{
- using (var message = new HttpResponseMessage
- {
+ using (var message = new HttpResponseMessage {
Content = new ByteArrayContent(new byte[] { })
})
{
@@ -171,8 +168,7 @@ namespace WalletWasabi.Http.Models
}
}
- return new HttpResponseContentHeaders
- {
+ return new HttpResponseContentHeaders {
ResponseHeaders = message.Headers,
ContentHeaders = message.Content.Headers
};

MODIFY
WalletWasabi/Mono/OptionSet.cs
WalletWasabi/Mono/OptionSet.cs
@@ -180,8 +180,7 @@ namespace Mono.Options
MessageLocalizer = localizer;
if (MessageLocalizer is null)
{
- MessageLocalizer = delegate (string f)
- {
+ MessageLocalizer = delegate (string f) {
return f;
};
}

Cleanup code according to CodeMaid