Skip to content

Conversation

MaxDesiatov
Copy link
Contributor

@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
Contributor Author

@swift-ci test

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

@swift-ci test windows

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

@swift-ci test macos

@MaxDesiatov
Copy link
Contributor Author

@swift-ci test macos

2 similar comments
@MaxDesiatov
Copy link
Contributor Author

@swift-ci test macos

@MaxDesiatov
Copy link
Contributor Author

@swift-ci test macos

@MaxDesiatov MaxDesiatov merged commit 4316b85 into main Oct 25, 2023
@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.

3 participants