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

Small clean up and refactoring #11

Merged
merged 3 commits into from
Sep 4, 2020
Merged

Conversation

johngarrett
Copy link

@johngarrett johngarrett commented Sep 3, 2020

As I was going through and studying this jailbreak, I saw a few quick things I could change.

Mainly:

  • use result types for URLSession call
  • remove strong self cycles
  • small syntax updates per the included swiftLint run script
  • cleanup showAlert protocol

case .success(let updateRequired):
if (updateRequired) {
DispatchQueue.main.async {
UIView.animate(withDuration: 0.5) {
Copy link

Choose a reason for hiding this comment

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

Need weak or unowned self here, as you did with the other animations.

@coolstar coolstar merged commit 811aff4 into Odyssey-Team:master Sep 4, 2020
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