Skip to content

Remove extraneous switch statements#353

Merged
tinder-cfuller merged 1 commit intomainfrom
remove-switch
Mar 2, 2024
Merged

Remove extraneous switch statements#353
tinder-cfuller merged 1 commit intomainfrom
remove-switch

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