Skip to content

Commit

Permalink
fix guard statement and simplify into a more readable if/else (#1790)
Browse files Browse the repository at this point in the history
  • Loading branch information
scottkicks committed Feb 7, 2023
1 parent 05fd181 commit ae5792e
Showing 1 changed file with 4 additions and 9 deletions.
Expand Up @@ -199,15 +199,10 @@ public final class LoginToutViewController: UIViewController, MFMailComposeViewC

AppEnvironment.login(accessTokenEnv)

/** FIXME: Not releasing this yet - re-test functionality as it failed regression testing on release-5.6.1 (see confluence regression testing document)
guard featureFacebookLoginDeprecationEnabled(),
let needsPassword = accessTokenEnv.user.needsPassword,
needsPassword else {
strongSelf.pushSetYourPasswordViewController()
return
}
*/
if featureFacebookLoginDeprecationEnabled(), accessTokenEnv.user.needsPassword == true {
strongSelf.pushSetYourPasswordViewController()
return
}

strongSelf.viewModel.inputs.environmentLoggedIn()
}
Expand Down

0 comments on commit ae5792e

Please sign in to comment.