Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[NFC] CoreCommands: simplify *get-task-allow-entitlement flags #7028

Merged
merged 1 commit into from Oct 25, 2023

Conversation

MaxDesiatov
Copy link
Member

@MaxDesiatov MaxDesiatov commented Oct 23, 2023

Motivation:

Following up on feedback to #7010, it's better to have a single optional boolean flag than two non-optional booleans.

Modifications:

Replaced var enableGetTaskAllowEntitlement = false and var disableGetTaskAllowEntitlement = false with var getTaskAllowEntitlement: Bool? = nil, which has an additional inversion: .prefixedEnableDisable configuration.

Result:

Code that handles these flags is simpler and easier to read.

@MaxDesiatov MaxDesiatov added the no functional change No user-visible functional changes included label Oct 23, 2023
@MaxDesiatov
Copy link
Member Author

@swift-ci test

@MaxDesiatov MaxDesiatov enabled auto-merge (squash) October 23, 2023 22:09
@MaxDesiatov
Copy link
Member Author

@swift-ci test windows

@MaxDesiatov MaxDesiatov self-assigned this Oct 24, 2023
@MaxDesiatov
Copy link
Member Author

@swift-ci test macos

@MaxDesiatov
Copy link
Member Author

@swift-ci test macos

2 similar comments
@MaxDesiatov
Copy link
Member Author

@swift-ci test macos

@MaxDesiatov
Copy link
Member Author

@swift-ci test macos

@MaxDesiatov MaxDesiatov merged commit 4316b85 into main Oct 25, 2023
5 checks passed
@MaxDesiatov MaxDesiatov deleted the maxd/simplify-entitlement-flags branch October 25, 2023 16:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
no functional change No user-visible functional changes included
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants