Use ternary operator.
MODIFY
WalletWasabi.Gui/ViewModels/StatusBarViewModel.cs
WalletWasabi.Gui/ViewModels/StatusBarViewModel.cs
@@ -265,14 +265,7 @@ namespace WalletWasabi.Gui.ViewModels
.ObserveOn(RxApp.MainThreadScheduler)
.Subscribe(usd =>
{
- if (usd == default)
- {
- BtcPrice = LoadingText;
- }
- else
- {
- BtcPrice = $"${(long)usd}";
- }
+ BtcPrice = usd == default ? LoadingText : $"${(long)usd}";
})
.DisposeWith(Disposables);

Use ternary operator.