Skip to content

Free, open-source Windows optimization tool for performance, privacy, and simplicity.

style: bring the freshly touched app files to the house format

fatDuck5343e114452d
diff --git a/optimizerDuck/Domain/Revert/Steps/HibernationRevertStep.cs b/optimizerDuck/Domain/Revert/Steps/HibernationRevertStep.cs
index 5caceee..37adb85 100644
--- a/optimizerDuck/Domain/Revert/Steps/HibernationRevertStep.cs
+++ b/optimizerDuck/Domain/Revert/Steps/HibernationRevertStep.cs
@@ -69,7 +69,9 @@ public class HibernationRevertStep : IRevertStep
{
return new JObject
{
- [nameof(WasPresent)] = WasPresent is { } present ? new JValue(present) : JValue.CreateNull(),
+ [nameof(WasPresent)] = WasPresent is { } present
+ ? new JValue(present)
+ : JValue.CreateNull(),
};
}
diff --git a/optimizerDuck/Domain/UI/OptimizationTags.cs b/optimizerDuck/Domain/UI/OptimizationTags.cs
index 05a864a..331a779 100644
--- a/optimizerDuck/Domain/UI/OptimizationTags.cs
+++ b/optimizerDuck/Domain/UI/OptimizationTags.cs
@@ -58,6 +58,7 @@ public static class OptimizationTagsToDisplay
/// Explains what a tag means. One key per tag value, named after the flag.
/// </summary>
public string ToExplanation() => Loc.Instance[$"Optimizer.UI.Tags.{tags}.Tooltip"];
+
/// <summary>
/// Converts the tag flags into their display representations.
/// </summary>
@@ -70,7 +71,10 @@ public static class OptimizationTagsToDisplay
continue;
if (tags.HasFlag(flag))
- yield return flag.ToDisplay() with { Description = flag.ToExplanation() };
+ yield return flag.ToDisplay() with
+ {
+ Description = flag.ToExplanation(),
+ };
}
}
diff --git a/optimizerDuck/Services/UI/BloatwareService.cs b/optimizerDuck/Services/UI/BloatwareService.cs
index a126d9b..7ade148 100644
--- a/optimizerDuck/Services/UI/BloatwareService.cs
+++ b/optimizerDuck/Services/UI/BloatwareService.cs
@@ -337,11 +337,7 @@ public class BloatwareService(
else
{
foreach (var failure in outcome.Failures)
- logger.LogError(
- "[APPX][FAIL] {Name}: {Failure}",
- appXPackage.Name,
- failure
- );
+ logger.LogError("[APPX][FAIL] {Name}: {Failure}", appXPackage.Name, failure);
}
return outcome;
diff --git a/optimizerDuck/UI/Controls/StateBadge.xaml.cs b/optimizerDuck/UI/Controls/StateBadge.xaml.cs
index f29d8b7..b1e5478 100644
--- a/optimizerDuck/UI/Controls/StateBadge.xaml.cs
+++ b/optimizerDuck/UI/Controls/StateBadge.xaml.cs
@@ -47,12 +47,13 @@ public partial class StateBadge : UserControl
new PropertyMetadata(null)
);
- public static readonly DependencyProperty CommandParameterProperty = DependencyProperty.Register(
- nameof(CommandParameter),
- typeof(object),
- typeof(StateBadge),
- new PropertyMetadata(null)
- );
+ public static readonly DependencyProperty CommandParameterProperty =
+ DependencyProperty.Register(
+ nameof(CommandParameter),
+ typeof(object),
+ typeof(StateBadge),
+ new PropertyMetadata(null)
+ );
public StateBadge()
{