Skip to content
Commit 03279135 authored by Lei Zhang's avatar Lei Zhang Committed by Chromium LUCI CQ
Browse files

Make code flow clearer in WinHttpUrlFetcher.

In BuildRequestAndFetchResultFromHttpService(), instead of using `hr` to
keep track of the result, and breaking out of a for-loop, just return
the result as soon as its known.

Change-Id: Ide6043e748a2ad31a68f02cc84eaaf2e4e3f1c66
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3378845


Reviewed-by: default avatarRoger Tawa <rogerta@chromium.org>
Commit-Queue: Lei Zhang <thestig@chromium.org>
Cr-Commit-Position: refs/heads/main@{#958210}
parent 87f1603c
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment