Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Refactor parseShapes function to simplify property checks and improve…
… readability - Combined checks for properties.P and properties.L into a single conditional statement. - Replaced separate blocks for properties.P and properties.L with a ternary operator to set the type (0x01 for P, 0x02 for L). - Updated the loop to start from 0 instead of 1 for consistency and clarity. - Preserved the logic for reading buffer values and updating the buffer position after each iteration. These changes streamline the function without altering its core behavior.
- Loading branch information