Skip to content

fix: toggle-mac-randomization: correct logic to allow "random" option#944

Merged
RoyalOughtness merged 5 commits intosecureblue:livefrom
spaceoden:patch-4
Mar 18, 2025
Merged

fix: toggle-mac-randomization: correct logic to allow "random" option#944
RoyalOughtness merged 5 commits intosecureblue:livefrom
spaceoden:patch-4

Conversation

@spaceoden
Copy link
Copy Markdown
Collaborator

@spaceoden spaceoden commented Mar 16, 2025

Currently the user's choice is ignored, and the else case always runs regardless of the user's choice. Using double brackets fixes the logic.

… the "random" option

currently the user's choice is ignored, because reusing the randomization_level variable causes the else case to run regardless of the user's choice.
@spaceoden spaceoden marked this pull request as ready for review March 16, 2025 04:49
@RoyalOughtness
Copy link
Copy Markdown
Collaborator

Good catch, we really need static analysis to catch this stuff early.

@RoyalOughtness RoyalOughtness enabled auto-merge (squash) March 17, 2025 22:00
@RoyalOughtness RoyalOughtness merged commit c6586f7 into secureblue:live Mar 18, 2025
8 checks passed
RoyalOughtness pushed a commit to RoyalOughtness/secureblue-dev that referenced this pull request Aug 4, 2025
@spaceoden spaceoden deleted the patch-4 branch February 1, 2026 20:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants