Inline variable declaration + whitespaces
MODIFY
WalletWasabi.Gui/Tabs/SettingsViewModel.cs
WalletWasabi.Gui/Tabs/SettingsViewModel.cs
@@ -236,8 +236,7 @@ namespace WalletWasabi.Gui.Tabs
var torHost = TorHost;
var torSocks5Port = int.TryParse(TorPort, out var port) ? (int?)port : null;
var useTor = UseTor;
- int level;
- var somePrivacyLevel = int.TryParse(SomePrivacyLevel, out level) ? (int?)level : null;
+ var somePrivacyLevel = int.TryParse(SomePrivacyLevel, out int level) ? (int?)level : null;
var finePrivacyLevel = int.TryParse(FinePrivacyLevel, out level) ? (int?)level : null;
var strongPrivacyLevel = int.TryParse(StrongPrivacyLevel, out level) ? (int?)level : null;
var dustThreshold = decimal.TryParse(DustThreshold, out var threshold) ? (decimal?)threshold : null;
@@ -309,8 +308,10 @@ namespace WalletWasabi.Gui.Tabs
public string ValidateSomePrivacyLevel()
=> ValidatePrivacyLevel(SomePrivacyLevel);
+
public string ValidateFinePrivacyLevel()
=> ValidatePrivacyLevel(FinePrivacyLevel);
+
public string ValidateStrongPrivacyLevel()
=> ValidatePrivacyLevel(StrongPrivacyLevel);

Inline variable declaration + whitespaces