From 6e84d38d58755e60caecd78ba57d3d4cd600df87 Mon Sep 17 00:00:00 2001 From: Abhash Kumar Singh Date: Mon, 22 Jul 2024 13:50:33 -0700 Subject: [PATCH] fix: update switch case for success having void result --- .../xcshareddata/swiftpm/Package.resolved | 8 ++++---- .../Views/Liveness/FaceLivenessDetectionView.swift | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/HostApp/HostApp.xcodeproj/project.xcworkspace/xcshareddata/swiftpm/Package.resolved b/HostApp/HostApp.xcodeproj/project.xcworkspace/xcshareddata/swiftpm/Package.resolved index 61218e39..93b4449f 100644 --- a/HostApp/HostApp.xcodeproj/project.xcworkspace/xcshareddata/swiftpm/Package.resolved +++ b/HostApp/HostApp.xcodeproj/project.xcworkspace/xcshareddata/swiftpm/Package.resolved @@ -5,8 +5,8 @@ "kind" : "remoteSourceControl", "location" : "https://github.com/aws-amplify/amplify-swift", "state" : { - "revision" : "7846328106dba471b3fb35170155e92aad50d427", - "version" : "2.33.3" + "revision" : "dbc4a0412f4b5cd96f3e756e78bbd1e8e0a35a2f", + "version" : "2.35.4" } }, { @@ -50,8 +50,8 @@ "kind" : "remoteSourceControl", "location" : "https://github.com/stephencelis/SQLite.swift.git", "state" : { - "revision" : "e78ae0220e17525a15ac68c697a155eb7a672a8e", - "version" : "0.15.0" + "revision" : "a95fc6df17d108bd99210db5e8a9bac90fe984b8", + "version" : "0.15.3" } }, { diff --git a/Sources/FaceLiveness/Views/Liveness/FaceLivenessDetectionView.swift b/Sources/FaceLiveness/Views/Liveness/FaceLivenessDetectionView.swift index bc4e47e8..1b94ca8d 100644 --- a/Sources/FaceLiveness/Views/Liveness/FaceLivenessDetectionView.swift +++ b/Sources/FaceLiveness/Views/Liveness/FaceLivenessDetectionView.swift @@ -255,7 +255,7 @@ enum InstructionState { private func map(detectionCompletion: @escaping (Result) -> Void) -> ((Result) -> Void) { { result in switch result { - case .success: + case .success(()): detectionCompletion(.success(())) case .failure(.invalidRegion): detectionCompletion(.failure(.invalidRegion))