mirror of
https://github.com/electron/electron.git
synced 2026-01-24 14:57:58 -05:00
Fix styling of #1199
This commit is contained in:
@@ -101,20 +101,18 @@ void AdapterRequestJob::CreateFileJobAndStart(const base::FilePath& path) {
|
||||
base::SequencedWorkerPool::SKIP_ON_SHUTDOWN));
|
||||
} else {
|
||||
auto archive = asar::GetOrCreateAsarArchive(asar_path);
|
||||
if (!archive)
|
||||
if (archive)
|
||||
real_job_ = new asar::URLRequestAsarJob(
|
||||
request(),
|
||||
network_delegate(),
|
||||
archive,
|
||||
relative_path,
|
||||
content::BrowserThread::GetBlockingPool()->
|
||||
GetTaskRunnerWithShutdownBehavior(
|
||||
base::SequencedWorkerPool::SKIP_ON_SHUTDOWN));
|
||||
else
|
||||
real_job_ = new net::URLRequestErrorJob(
|
||||
request(),
|
||||
network_delegate(),
|
||||
net::ERR_FILE_NOT_FOUND);
|
||||
|
||||
real_job_ = new asar::URLRequestAsarJob(
|
||||
request(),
|
||||
network_delegate(),
|
||||
archive,
|
||||
relative_path,
|
||||
content::BrowserThread::GetBlockingPool()->
|
||||
GetTaskRunnerWithShutdownBehavior(
|
||||
base::SequencedWorkerPool::SKIP_ON_SHUTDOWN));
|
||||
request(), network_delegate(), net::ERR_FILE_NOT_FOUND);
|
||||
}
|
||||
|
||||
real_job_->Start();
|
||||
|
||||
Reference in New Issue
Block a user