From 6fb6d9289e9e74311daf3937aa80065232b3b487 Mon Sep 17 00:00:00 2001 From: "deepsource-autofix[bot]" <62050782+deepsource-autofix[bot]@users.noreply.github.com> Date: Tue, 16 Dec 2025 21:46:00 +0000 Subject: [PATCH] refactor: use expression bodied lambdas where possible If your lambda's body has a single statement, consider refactoring it to move away from block syntax to expression body. Doing so makes your code easier to read. --- src/SVNPathCopy.Configuration/ViewModels/MainViewModel.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/SVNPathCopy.Configuration/ViewModels/MainViewModel.cs b/src/SVNPathCopy.Configuration/ViewModels/MainViewModel.cs index 24945f6..67d685e 100644 --- a/src/SVNPathCopy.Configuration/ViewModels/MainViewModel.cs +++ b/src/SVNPathCopy.Configuration/ViewModels/MainViewModel.cs @@ -203,7 +203,7 @@ private async Task InstallShellExtension() StatusMessage = "Installing shell extension... Please accept the UAC prompt if it appears."; IsStatusError = false; - await Task.Run(() => { _shellExtensionService.Register(); }); + await Task.Run(() => _shellExtensionService.Register()); // Small delay to allow registry to update await Task.Delay(500); @@ -265,7 +265,7 @@ private async Task UninstallShellExtension() StatusMessage = "Uninstalling shell extension... Please accept the UAC prompt if it appears."; IsStatusError = false; - await Task.Run(() => { _shellExtensionService.Unregister(); }); + await Task.Run(() => _shellExtensionService.Unregister()); // Small delay to allow registry to update await Task.Delay(500);