Skip to content

Commit b7951c4

Browse files
committed
Merge branch 'feat/#213-notification-tap' of https://github.com/opficdev/SwiftUI_DevLog into feat/#213-notification-tap
2 parents dee9e66 + 3bdaff9 commit b7951c4

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

DevLog/App/Routing/PushNotificationRoute.swift

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -42,9 +42,9 @@ final class PushNotificationRoute {
4242
}
4343

4444
private func extractTodoId(from userInfo: [AnyHashable: Any]) -> String? {
45-
if let todoId = userInfo["todoId"] as? String, !todoId.isEmpty {
46-
return todoId
45+
guard let todoId = userInfo["todoId"] as? String, !todoId.isEmpty else {
46+
return nil
4747
}
48-
return nil
48+
return todoId
4949
}
5050
}

0 commit comments

Comments
 (0)