mirror of
https://github.com/clash-verge-rev/clash-verge-rev
synced 2025-05-05 00:23:45 +08:00
Replace multiple boolean variables with a bitflag approach for tracking required update operations in the patch_verge function. This improves code maintainability and potentially performance by: 1. Using a single integer variable with bit operations instead of multiple booleans 2. Defining clear flags as enum variants for better code readability 3. Simplifying flag checks with bitwise operations The UpdateFlags enum provides a clear and type-safe way to represent different types of updates needed when patching Verge configuration.