mirror of
https://github.com/cefsharp/CefSharp.git
synced 2026-12-06 04:00:07 +00:00
Simplify code by removing local variable handled variable - simply return
This commit is contained in:
@@ -17,19 +17,12 @@ namespace CefSharp
|
||||
{
|
||||
_callback = callback;
|
||||
|
||||
bool handled = false;
|
||||
|
||||
AutoLock lock_scope(_syncRoot);
|
||||
|
||||
auto schemeResponse = gcnew SchemeHandlerResponse(this);
|
||||
|
||||
auto requestWrapper = gcnew CefRequestWrapper(request);
|
||||
if (_handler->ProcessRequestAsync(requestWrapper, schemeResponse))
|
||||
{
|
||||
handled = true;
|
||||
}
|
||||
|
||||
return handled;
|
||||
return _handler->ProcessRequestAsync(requestWrapper, schemeResponse);
|
||||
}
|
||||
|
||||
void ResourceHandlerWrapper::ProcessRequestCallback(ISchemeHandlerResponse^ response)
|
||||
|
||||
Reference in New Issue
Block a user