Skip to content

Remove extraneous switch statements #353

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

Merged
merged 1 commit into from
Mar 2, 2024
Merged

Remove extraneous switch statements #353

merged 1 commit into from
Mar 2, 2024

Conversation

tinder-cfuller
Copy link
Collaborator

No description provided.

Comment on lines +273 to +276
let constraint: NSLayoutConstraint = anchor.constraint(is: relation,
to: targetAnchor,
multiplier: multiplier,
constant: constant)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Very nice improvement in readability!

@unknown default:
constraint = anchor.constraint(equalToConstant: constant)
}
let constraint: NSLayoutConstraint = anchor.constraint(is: relation, to: constant)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

x2

@tinder-cfuller tinder-cfuller merged commit f99302a into main Mar 2, 2024
@tinder-cfuller tinder-cfuller deleted the remove-switch branch March 2, 2024 15:59
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.

3 participants