mirror of
https://github.com/Stone-Red-Code/RemSox.git
synced 2026-09-04 09:06:23 +02:00
More code cleanup
This commit is contained in:
@@ -1,5 +1,3 @@
|
||||
using RemSox.UI.CLI;
|
||||
|
||||
namespace RemSox.UI.CLI.Commands;
|
||||
|
||||
public sealed class HaltCommand : ICommand
|
||||
|
||||
@@ -1,5 +1,3 @@
|
||||
using RemSox.UI.CLI;
|
||||
|
||||
namespace RemSox.UI.CLI.Commands;
|
||||
|
||||
public sealed class HelpCommand : ICommand
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
using RemSox.Processing;
|
||||
using RemSox.UI.CLI;
|
||||
|
||||
namespace RemSox.UI.CLI.Commands;
|
||||
|
||||
|
||||
@@ -1,6 +1,5 @@
|
||||
using RemSox.Processes;
|
||||
using RemSox.Processing;
|
||||
using RemSox.UI.CLI;
|
||||
|
||||
namespace RemSox.UI.CLI.Commands;
|
||||
|
||||
|
||||
@@ -11,10 +11,10 @@ public abstract class ChangedPropertiesTracker : INotifyPropertyChanged
|
||||
{
|
||||
get
|
||||
{
|
||||
Dictionary<string, object?> changes = new();
|
||||
foreach (var name in changedPropertyNames)
|
||||
Dictionary<string, object?> changes = [];
|
||||
foreach (string name in changedPropertyNames)
|
||||
{
|
||||
if (properties.TryGetValue(name, out var value))
|
||||
if (properties.TryGetValue(name, out object? value))
|
||||
{
|
||||
changes[name] = value;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user