mirror of
https://github.com/facebook/proxygen.git
synced 2025-08-07 07:02:53 +03:00
fix use before assignment case
Summary: If retries is 0, then `0 < 0` is false, meaning we will skip the `while` loop completely and just try to read retcode, which was never assigned. Reviewed By: fanzeyi Differential Revision: D23999523 fbshipit-source-id: fac4a1104eba3585fb52fc8d83163cb1a87b8fee
This commit is contained in:
committed by
Facebook GitHub Bot
parent
9ed22c26bb
commit
21ee1f0940
@@ -709,7 +709,7 @@ if __name__ == "__main__":
|
||||
args += ["-R", test_filter]
|
||||
|
||||
count = 0
|
||||
while count < retry:
|
||||
while count <= retry:
|
||||
retcode = self._run_cmd(
|
||||
args, env=env, use_cmd_prefix=use_cmd_prefix, allow_fail=True
|
||||
)
|
||||
|
Reference in New Issue
Block a user