Skip to content

Commit

Permalink
fix: delete space
Browse files Browse the repository at this point in the history
  • Loading branch information
Atsuhiro Muroyama committed Aug 12, 2023
1 parent 2e7ecad commit 4f00334
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions DJSystemiOS/Pages/QRReaderPage/QRReaderViewController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -52,12 +52,12 @@ extension QRReaderViewController: QRScannerViewDelegate {
func qrScannerView(_ qrScannerView: QRScannerView, didSuccess code: String) {
let extractedRoomID = URL.extractRoomID(inputURL: code)
switch extractedRoomID {
case .success(let roomID) :
case .success(let roomID):
let validURL = roomID
let roomOverViewPageView = RoomOverviewViewController(roomAPI: Room.API(), roomOverview: RoomOverview(id: validURL, name: "", description: ""))
navigationController?.pushViewController(roomOverViewPageView, animated: true)

case .failure :
case .failure:
let alert = UIAlertController(title: "エラー", message: "このURLに対応するルームが見つかりません。", preferredStyle: .alert)
alert.addAction(.init(title: "OK", style: .default))
self.present(alert, animated: true)
Expand Down

0 comments on commit 4f00334

Please sign in to comment.