Tuesday, August 13, 2024
1 change · 17.0
Code cleanup and technical improvements
This update cleans up and clarifies the internal logic used to recognize file types, including a small correction for presentation file handling. It should make this area easier to maintain while reducing the chance of incorrect file type checks.
Original PR description
- Corrected Typo: Changed pt/ to ppt/ in _ooxml_dirs. - Removed Unnecessary Comments: Cleaned up and refined comments to be concise and clear. - Code Formatting: Ensured consistent indentation and spacing. String and Byte Comparisons: Ensured byte comparisons are correctly handled. - Refactored Functions: Simplified and clarified the logic in various functions. - Exception Handling: Improved logging for exceptions. Description of the issue/feature this PR addresses: Current behavior before PR: Desired behavior after PR is merged: --- I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr