From c98c59edf24e83c47f3de455bdef046c8b6e57a5 Mon Sep 17 00:00:00 2001 From: Philipp Heenemann Date: Wed, 12 Jul 2023 09:29:02 +0200 Subject: [PATCH] Refactor InvertedProgressConverter for readability --- SPTInstaller/Converters/InvertedProgressConverter.cs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/SPTInstaller/Converters/InvertedProgressConverter.cs b/SPTInstaller/Converters/InvertedProgressConverter.cs index 5ee62d8..6176f47 100644 --- a/SPTInstaller/Converters/InvertedProgressConverter.cs +++ b/SPTInstaller/Converters/InvertedProgressConverter.cs @@ -1,5 +1,5 @@ -using Avalonia.Data.Converters; -using System.Globalization; +using System.Globalization; +using Avalonia.Data.Converters; namespace SPTInstaller.Converters; @@ -7,7 +7,7 @@ public class InvertedProgressConverter : IValueConverter { public object? Convert(object? value, Type targetType, object? parameter, CultureInfo culture) { - if( value is int progress) + if (value is int progress) { return 100 - progress; } @@ -17,7 +17,7 @@ public class InvertedProgressConverter : IValueConverter public object? ConvertBack(object? value, Type targetType, object? parameter, CultureInfo culture) { - if ( value is int invertedProgress) + if (value is int invertedProgress) { return 100 - invertedProgress; }