Skip to content

Commit

Permalink
[#35] Add comment for guard return backToHome
Browse files Browse the repository at this point in the history
  • Loading branch information
blyscuit committed Feb 15, 2023
1 parent 890d380 commit 3c7bfc0
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,10 @@ extension RouteCoordinator: SurveySelectionCoordinator {
extension RouteCoordinator: SurveyDetailCoordinator {

func backToHome() {
guard routes.count > 1 else { return }
guard routes.count > 1 else {
// Already at Home
return
}
withoutAnimation {
self.routes.dismiss()
}
Expand Down

0 comments on commit 3c7bfc0

Please sign in to comment.