Skip to content

Commit 7bf0d11

Browse files
committed
Split BeginEvaluateScriptAsync call into two lines, makes more readable and also meets Max columns of 132 style
1 parent 792dcd2 commit 7bf0d11

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

CefSharp/Internals/BrowserProcessServiceHost.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,8 @@ public Task<JavascriptResponse> EvaluateScriptAsync(int browserId, long frameId,
5555
{
5656
var context = t.Result;
5757
var renderProcess = context.GetCallbackChannel<IRenderProcess>();
58-
return Task.Factory.FromAsync<JavascriptResponse>(renderProcess.BeginEvaluateScriptAsync(browserId, frameId, script, timeout, null, null), renderProcess.EndEvaluateScriptAsync);
58+
var asyncResult = renderProcess.BeginEvaluateScriptAsync(browserId, frameId, script, timeout, null, null);
59+
return Task.Factory.FromAsync<JavascriptResponse>(asyncResult, renderProcess.EndEvaluateScriptAsync);
5960
}).Unwrap();
6061
}
6162

0 commit comments

Comments
 (0)