Fix some trivial null warnings
MODIFY
WalletWasabi/BitcoinCore/Configuration/CoreConfig.cs
WalletWasabi/BitcoinCore/Configuration/CoreConfig.cs
@@ -107,7 +107,7 @@ namespace WalletWasabi.BitcoinCore.Configuration
.Where((x, i) => i == 0 || x != allLines[i - 1]);
var retLines = new List<string>();
- string section = null;
+ string? section = null;
foreach (var line in allCorrectedLines)
{
if (line == "[main]")

MODIFY
WalletWasabi/BitcoinCore/Configuration/CoreConfigTranslator.cs
WalletWasabi/BitcoinCore/Configuration/CoreConfigTranslator.cs
@@ -18,7 +18,7 @@ namespace WalletWasabi.BitcoinCore.Configuration
public string TryGetValue(string key)
{
var configDic = Config.ToDictionary();
- string result = null;
+ string? result = null;
foreach (var networkPrefixWithDot in NetworkTranslator.GetConfigPrefixesWithDots(Network))
{
var found = configDic.TryGet($"{networkPrefixWithDot}{key}");

MODIFY
WalletWasabi/BitcoinCore/CoreNode.cs
WalletWasabi/BitcoinCore/CoreNode.cs
@@ -257,9 +257,9 @@ namespace WalletWasabi.BitcoinCore
{
await DisposeAsync().ConfigureAwait(false);
- Exception exThrown = null;
+ Exception? exThrown = null;
- BitcoindRpcProcessBridge bridge = null;
+ BitcoindRpcProcessBridge? bridge = null;
if (Bridge is { })
{
bridge = Bridge;

Fix some trivial null warnings