Fix possibly unbound Body by assigning preassigning them the else case and overriding them in the if case.
The current case will work until eiether the has_chunk_header above or below the _process_diff function changes, and then it will cause runtime crash as one cannot concat string and None. Change-Id: I81737328f609e636bcee5087a2bc4aa96a6a6964 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/tools/depot_tools/+/7260374 Reviewed-by: Brian Egizi <begizi@google.com> Reviewed-by: Gavin Mak <gavinmak@google.com> Commit-Queue: Alex Ovsienko <ovsienko@google.com>changes/74/7260374/5
parent
02f1c0f8b7
commit
30e928fe1c
Loading…
Reference in New Issue