apport icon indicating copy to clipboard operation
apport copied to clipboard

crashdb: make _duplicate_db_sync_status more readable

Open bdrung opened this issue 9 months ago • 1 comments

Coverity 2023.9.2 rule COV_PY_COPY_PASTE_ERROR_PYTHON complains about real_fixed_version in CrashDatabase.duplicate_db_fixed looks like a copy-paste error.

For the "crash got reopened" case, real_fixed_version is None and therefore the call to duplicate_db_fixed sets the fixed version back to 'still unfixed'. Make that code more readable by explicitly passing None to duplicate_db_fixed.

bdrung avatar May 21 '24 12:05 bdrung