Skip to content

Commit 17b56e6

Browse files
author
Bjarte Skogøy
committed
brackets and removing commented code
1 parent 717c0ee commit 17b56e6

File tree

2 files changed

+8
-3
lines changed

2 files changed

+8
-3
lines changed

CefSharp.BrowserSubprocess/CefRenderProcess.cs

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -140,14 +140,22 @@ public IAsyncResult BeginEvaluateScriptAsync(int browserId, long frameId, string
140140
task.ContinueWith(t =>
141141
{
142142
if (t.IsFaulted)
143+
{
143144
tcs.TrySetException(t.Exception.InnerExceptions);
145+
}
144146
else if (t.IsCanceled)
147+
{
145148
tcs.TrySetCanceled();
149+
}
146150
else
151+
{
147152
tcs.TrySetResult(t.Result);
153+
}
148154

149155
if (callback != null)
156+
{
150157
callback(tcs.Task);
158+
}
151159
});
152160
return tcs.Task;
153161
}

CefSharp/Internals/IRenderProcess.cs

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,5 @@ public interface IRenderProcess
1515
IAsyncResult BeginEvaluateScriptAsync(int browserId, long frameId, string script, TimeSpan? timeout, AsyncCallback callback, object state);
1616

1717
JavascriptResponse EndEvaluateScriptAsync(IAsyncResult result);
18-
19-
//[OperationContract]
20-
//Task<JavascriptResponse> EvaluateScriptAsync(int browserId, long frameId, string script, TimeSpan? timeout);
2118
}
2219
}

0 commit comments

Comments
 (0)