Fix VS2019 complains in Backend project.
MODIFY
WalletWasabi.Backend/Config.cs
WalletWasabi.Backend/Config.cs
@@ -221,7 +221,10 @@ namespace WalletWasabi.Backend
/// <inheritdoc />
public void AssertFilePathSet()
{
- if (FilePath is null) throw new NotSupportedException($"{nameof(FilePath)} is not set. Use {nameof(SetFilePath)} to set it.");
+ if (FilePath is null)
+ {
+ throw new NotSupportedException($"{nameof(FilePath)} is not set. Use {nameof(SetFilePath)} to set it.");
+ }
}
}
}

MODIFY
WalletWasabi.Backend/Controllers/ChaumianCoinJoinController.cs
WalletWasabi.Backend/Controllers/ChaumianCoinJoinController.cs
@@ -392,7 +392,6 @@ namespace WalletWasabi.Backend.Controllers
int takeBlindCount = round.EstimateBestMixingLevel(alice);
- var prevBlindCount = alice.BlindedOutputScripts.Length;
alice.BlindedOutputScripts = alice.BlindedOutputScripts.Take(takeBlindCount).ToArray();
alice.BlindedOutputSignatures = alice.BlindedOutputSignatures.Take(takeBlindCount).ToArray();
resp.BlindedOutputSignatures = alice.BlindedOutputSignatures; // Don't give back more mixing levels than we'll use.
@@ -601,7 +600,7 @@ namespace WalletWasabi.Backend.Controllers
return BadRequest();
}
- (CcjRound round, Alice alice) = GetRunningRoundAndAliceOrFailureResponse(roundId, uniqueId, CcjRoundPhase.Signing, out IActionResult returnFailureResponse);
+ (CcjRound round, _) = GetRunningRoundAndAliceOrFailureResponse(roundId, uniqueId, CcjRoundPhase.Signing, out IActionResult returnFailureResponse);
if (returnFailureResponse != null)
{
return returnFailureResponse;

MODIFY
WalletWasabi.Backend/Middlewares/HeadMethodMiddleware.cs
WalletWasabi.Backend/Middlewares/HeadMethodMiddleware.cs
@@ -13,7 +13,7 @@ namespace WalletWasabi.Backend.Middlewares
{
#region Fields
- private readonly RequestDelegate _next;
+ private readonly RequestDelegate Next;
#endregion Fields
@@ -21,7 +21,7 @@ namespace WalletWasabi.Backend.Middlewares
public HeadMethodMiddleware(RequestDelegate next)
{
- _next = next ?? throw new ArgumentNullException(nameof(next));
+ Next = next ?? throw new ArgumentNullException(nameof(next));
}
#endregion Constructor
@@ -40,7 +40,7 @@ namespace WalletWasabi.Backend.Middlewares
context.Response.Body = Stream.Null;
}
- await _next(context);
+ await Next(context);
if (methodSwitched)
{

Fix VS2019 complains in Backend project.