From 12973314073667dc3f276d9cca73b05123b8d309 Mon Sep 17 00:00:00 2001 From: Thomas Ricouard Date: Sat, 6 Jan 2024 11:24:41 +0100 Subject: [PATCH] Fix more warnings --- .../Sources/Notifications/NotificationsViewModel.swift | 2 +- .../Status/Editor/Components/StatusEditorUTTypeSupported.swift | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Packages/Notifications/Sources/Notifications/NotificationsViewModel.swift b/Packages/Notifications/Sources/Notifications/NotificationsViewModel.swift index 333b81e0..49ec6c9e 100644 --- a/Packages/Notifications/Sources/Notifications/NotificationsViewModel.swift +++ b/Packages/Notifications/Sources/Notifications/NotificationsViewModel.swift @@ -42,7 +42,7 @@ import SwiftUI var selectedType: Models.Notification.NotificationType? { didSet { guard oldValue != selectedType, - let id = client?.id + client?.id != nil else { return } if !isLockedType { diff --git a/Packages/Status/Sources/Status/Editor/Components/StatusEditorUTTypeSupported.swift b/Packages/Status/Sources/Status/Editor/Components/StatusEditorUTTypeSupported.swift index 62b7a9b1..0b644b91 100644 --- a/Packages/Status/Sources/Status/Editor/Components/StatusEditorUTTypeSupported.swift +++ b/Packages/Status/Sources/Status/Editor/Components/StatusEditorUTTypeSupported.swift @@ -1,4 +1,4 @@ -import AVFoundation +@preconcurrency import AVFoundation import Foundation import PhotosUI import SwiftUI