Skip to content

Commit

Permalink
Move initialization of |incremental_apk_exists|
Browse files Browse the repository at this point in the history
Initialize it regardless of state so that either of the if blocks below
can access it and be safe in doing so.

Bug: 856384
Change-Id: I2205a3351e0ff0603ccaafd0594aaaf9ca8e29ec
Reviewed-on: https://chromium-review.googlesource.com/1118911
Reviewed-by: agrieve <agrieve@chromium.org>
Commit-Queue: Sky Malice <skym@chromium.org>
Cr-Commit-Position: refs/heads/master@{#571522}
  • Loading branch information
Sky Malice authored and Commit Bot committed Jun 29, 2018
1 parent 60d379e commit 5c7f004
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions build/android/apk_operations.py
Original file line number Diff line number Diff line change
Expand Up @@ -844,9 +844,9 @@ def ProcessArgs(self, args):
if not args.all and not args.devices:
self._parser.error(_GenerateMissingAllFlagMessage(devices))

if self.supports_incremental:
incremental_apk_exists = False
incremental_apk_exists = False

if self.supports_incremental:
if args.incremental_json:
with open(args.incremental_json) as f:
install_dict = json.load(f)
Expand Down

0 comments on commit 5c7f004

Please sign in to comment.