Skip to content

style: enhance Swift's API usage and eliminate force casts#429

Open
MojtabaHs wants to merge 3 commits intorive-app:mainfrom
MojtabaHs:enhance-code
Open

style: enhance Swift's API usage and eliminate force casts#429
MojtabaHs wants to merge 3 commits intorive-app:mainfrom
MojtabaHs:enhance-code

Conversation

@MojtabaHs
Copy link

Merge combinations of if ... is <Type> / ... as! <Type> and convert them to if let ... as? <Type> to reduce the code smell and make the code fundamentally safer.

Note: I've kept the formatting as it was to reduce the changes in the code and make it easier for the reviewer.

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.

1 participant