flake8
passed.
JSHint
passed.
Review Request #11796 — Created Aug. 18, 2021 and submitted
There are cases where a diffx diff section will have empty diff
content--for example, when a file is renamed but doesn't have any
changes to content. The diff stats generation will do the right thing if
a file is added without specifyingdiff=
in the constructor at all,
but was spewing errors withdiff=b''
. This change updates things to
check for falsiness rather than explicitly checking againstNone
.
None
) diffs. Saw noSummary | ID |
---|---|
11826f22aebbad2586186e6e0fb55dda5173516a |
Add a test case.
~ | Ran with some code that was creating empty (but not | |
~ | more errors. | |
~ |
| |
~ |
|
Summary | ID | |
---|---|---|
2b7eb3abbf13e8c4e6037516dd5f6034690e24cd | ||
11826f22aebbad2586186e6e0fb55dda5173516a |