Skip to content

Commit 6fb6d92

Browse files
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.
1 parent 97d9aae commit 6fb6d92

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/SVNPathCopy.Configuration/ViewModels/MainViewModel.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -203,7 +203,7 @@ private async Task InstallShellExtension()
203203
StatusMessage = "Installing shell extension... Please accept the UAC prompt if it appears.";
204204
IsStatusError = false;
205205

206-
await Task.Run(() => { _shellExtensionService.Register(); });
206+
await Task.Run(() => _shellExtensionService.Register());
207207

208208
// Small delay to allow registry to update
209209
await Task.Delay(500);
@@ -265,7 +265,7 @@ private async Task UninstallShellExtension()
265265
StatusMessage = "Uninstalling shell extension... Please accept the UAC prompt if it appears.";
266266
IsStatusError = false;
267267

268-
await Task.Run(() => { _shellExtensionService.Unregister(); });
268+
await Task.Run(() => _shellExtensionService.Unregister());
269269

270270
// Small delay to allow registry to update
271271
await Task.Delay(500);

0 commit comments

Comments
 (0)