More code cleanup

This commit is contained in:
Stone_Red
2026-06-08 22:05:11 +02:00
parent 031b3315a5
commit 5b8936dd16
5 changed files with 3 additions and 9 deletions
-2
View File
@@ -1,5 +1,3 @@
using RemSox.UI.CLI;
namespace RemSox.UI.CLI.Commands; namespace RemSox.UI.CLI.Commands;
public sealed class HaltCommand : ICommand public sealed class HaltCommand : ICommand
-2
View File
@@ -1,5 +1,3 @@
using RemSox.UI.CLI;
namespace RemSox.UI.CLI.Commands; namespace RemSox.UI.CLI.Commands;
public sealed class HelpCommand : ICommand public sealed class HelpCommand : ICommand
-1
View File
@@ -1,5 +1,4 @@
using RemSox.Processing; using RemSox.Processing;
using RemSox.UI.CLI;
namespace RemSox.UI.CLI.Commands; namespace RemSox.UI.CLI.Commands;
-1
View File
@@ -1,6 +1,5 @@
using RemSox.Processes; using RemSox.Processes;
using RemSox.Processing; using RemSox.Processing;
using RemSox.UI.CLI;
namespace RemSox.UI.CLI.Commands; namespace RemSox.UI.CLI.Commands;
+3 -3
View File
@@ -11,10 +11,10 @@ public abstract class ChangedPropertiesTracker : INotifyPropertyChanged
{ {
get get
{ {
Dictionary<string, object?> changes = new(); Dictionary<string, object?> changes = [];
foreach (var name in changedPropertyNames) foreach (string name in changedPropertyNames)
{ {
if (properties.TryGetValue(name, out var value)) if (properties.TryGetValue(name, out object? value))
{ {
changes[name] = value; changes[name] = value;
} }