Skip to content

Commit 03ed16a

Browse files
committed
Code cleanup
1 parent ada9058 commit 03ed16a

4 files changed

Lines changed: 14 additions & 13 deletions

File tree

InternetTest/InternetTest/App.xaml.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,8 @@ protected override async void OnStartup(StartupEventArgs e)
5959
return;
6060
}
6161

62-
MainWindow = new MainWindow() {
62+
MainWindow = new MainWindow()
63+
{
6364
Width = settings.MainWindowSize?.Item1 ?? 950,
6465
Height = settings.MainWindowSize?.Item2 ?? 600,
6566
};

InternetTest/InternetTest/Models/DnsRecord.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ public class DnsRecord
3333
public string Value { get; set; } = string.Empty;
3434
public string Class { get; set; } = string.Empty;
3535

36-
private string _raw;
36+
private readonly string _raw;
3737
public DnsRecord(string name, string raw, QueryType queryType)
3838
{
3939
Name = name;

InternetTest/InternetTest/ViewModels/HomePageViewModel.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ public class HomePageViewModel : ViewModelBase, ISensitiveViewModel
114114
public ICommand ClearCommand => new RelayCommand(o =>
115115
{
116116
_mainViewModel.History.Activity.Clear();
117-
_mainViewModel.History.Save();
117+
_mainViewModel.History.Save();
118118
History = [];
119119
OnPropertyChanged(nameof(HasHistory));
120120
});

InternetTest/InternetTest/Views/Oobe/ThemePage.xaml.cs

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -25,13 +25,13 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
2525

2626
namespace InternetTest.Views.Oobe;
2727

28-
/// <summary>
29-
/// Interaction logic for ThemePage.xaml
30-
/// </summary>
31-
public partial class ThemePage : UserControl
32-
{
33-
public ThemePage()
34-
{
35-
InitializeComponent();
36-
}
37-
}
28+
/// <summary>
29+
/// Interaction logic for ThemePage.xaml
30+
/// </summary>
31+
public partial class ThemePage : UserControl
32+
{
33+
public ThemePage()
34+
{
35+
InitializeComponent();
36+
}
37+
}

0 commit comments

Comments
 (0)