Files
chromium_depot_tools/presubmit_diff.py
Alex Ovsienko 30e928fe1c 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>
2025-12-17 16:09:22 -08:00

6.8 KiB
Executable File