Skip to content

Commit

Permalink
refactor: remove forced unwrapping
Browse files Browse the repository at this point in the history
  • Loading branch information
terry-private committed Jul 4, 2021
1 parent 196c2ff commit 42ea246
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion PayNote/MainTab/MainTabRouter.swift
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,9 @@ final class MainTabRouter: MainTabRouterProtocol {
/// - HomeInteractor
/// - Returns: HomeViewController
static func assembleHomeModules() -> UIViewController {
let homeViewController = R.storyboard.home.homeViewController()!
guard let homeViewController = R.storyboard.home.homeViewController() else {
fatalError("Unexpected nil @\(#function): \(#line)")
}
let bar = UITabBarItem(title: R.string.localizable.mainTabBar_home(), image: UIImage(systemName: "house"), tag: 0)
bar.accessibilityIdentifier = "articleList_bar"
homeViewController.tabBarItem = bar
Expand Down

0 comments on commit 42ea246

Please sign in to comment.