Remove null from non nullable FilePath
MODIFY
WalletWasabi.Backend/Global.cs
WalletWasabi.Backend/Global.cs
@@ -60,7 +60,7 @@ public class Global : IDisposable
HostedServices.Register<MempoolMirror>(() => new MempoolMirror(TimeSpan.FromSeconds(21), RpcClient, P2pNode), "Full Node Mempool Mirror");
- if (roundConfig.FilePath is { })
+ if (!string.IsNullOrWhiteSpace(roundConfig.FilePath))
{
HostedServices.Register<ConfigWatcher>(() =>
new ConfigWatcher(

MODIFY
WalletWasabi/Bases/ConfigBase.cs
WalletWasabi/Bases/ConfigBase.cs
@@ -21,12 +21,12 @@ public abstract class ConfigBase : NotifyPropertyChangedBase, IConfig
}
/// <inheritdoc />
- public string FilePath { get; private set; } = null;
+ public string FilePath { get; private set; } = "";
/// <inheritdoc />
public void AssertFilePathSet()
{
- if (FilePath is null)
+ if (string.IsNullOrWhiteSpace(FilePath))
{
throw new NotSupportedException($"{nameof(FilePath)} is not set. Use {nameof(SetFilePath)} to set it.");
}

MODIFY
WalletWasabi/WabiSabi/Backend/WabiSabiConfig.cs
WalletWasabi/WabiSabi/Backend/WabiSabiConfig.cs
@@ -107,7 +107,7 @@ public class WabiSabiConfig : ConfigBase
public void MakeNextCoordinatorScriptDirty()
{
CoordinatorExtPubKeyCurrentDepth++;
- if (FilePath is { })
+ if (!string.IsNullOrWhiteSpace(FilePath))
{
ToFile();
}

Remove null from non nullable FilePath