• 
      

    Fix a crash in DiffXFileSection.generate_stats with no diff.

    Review Request #11762 — Created July 31, 2021 and submitted

    Information

    DiffX
    master

    Reviewers

    DiffXFileSection.generate_stats() was assuming a diff was set, but
    this isn't a requirement for this section (as there may just be metadata
    changes).

    This will now bail immediately if a diff is not set. Statistics in this
    case won't be set.

    Unit tests pass.

    Summary ID
    Fix a crash in DiffXFileSection.generate_stats with no diff.
    `DiffXFileSection.generate_stats()` was assuming a diff was set, but this isn't a requirement for this section (as there may just be metadata changes). This will now bail immediately if a diff is not set. Statistics in this case won't be set.
    3e543185b2bb28777973d639e881bfa3cdf30e65
    david
    1. Ship It!
    2. 
        
    chipx86
    Review request changed
    Status:
    Completed
    Change Summary:
    Pushed to master (2b2fff1)