We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents dee9e66 + 3bdaff9 commit b7951c4Copy full SHA for b7951c4
1 file changed
DevLog/App/Routing/PushNotificationRoute.swift
@@ -42,9 +42,9 @@ final class PushNotificationRoute {
42
}
43
44
private func extractTodoId(from userInfo: [AnyHashable: Any]) -> String? {
45
- if let todoId = userInfo["todoId"] as? String, !todoId.isEmpty {
46
- return todoId
+ guard let todoId = userInfo["todoId"] as? String, !todoId.isEmpty else {
+ return nil
47
48
- return nil
+ return todoId
49
50
0 commit comments