Skip to content

Commit 83013be

Browse files
committed
minimize unnecessary diffs
1 parent 3461067 commit 83013be

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

dotnet/src/webdriver/DriverService.cs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -258,12 +258,14 @@ public async Task StartAsync()
258258
driverServiceProcess.StartInfo.UseShellExecute = false;
259259
driverServiceProcess.StartInfo.CreateNoWindow = this.HideCommandPromptWindow;
260260

261-
this.OnDriverProcessStarting(new DriverProcessStartingEventArgs(driverServiceProcess.StartInfo));
261+
DriverProcessStartingEventArgs eventArgs = new DriverProcessStartingEventArgs(driverServiceProcess.StartInfo);
262+
this.OnDriverProcessStarting(eventArgs);
262263

263264
driverServiceProcess.Start();
264265
bool serviceAvailable = await this.WaitForServiceInitializationAsync().ConfigureAwait(false);
265266

266-
this.OnDriverProcessStarted(new DriverProcessStartedEventArgs(driverServiceProcess));
267+
DriverProcessStartedEventArgs processStartedEventArgs = new DriverProcessStartedEventArgs(driverServiceProcess);
268+
this.OnDriverProcessStarted(processStartedEventArgs);
267269

268270
if (!serviceAvailable)
269271
{

0 commit comments

Comments
 (0)