Skip to content

Commit

Permalink
fix: update switch case for success having void result
Browse files Browse the repository at this point in the history
  • Loading branch information
thisisabhash committed Jul 22, 2024
1 parent 7d7bb8f commit 6e84d38
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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"
}
},
{
Expand Down Expand Up @@ -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"
}
},
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -255,7 +255,7 @@ enum InstructionState {
private func map(detectionCompletion: @escaping (Result<Void, FaceLivenessDetectionError>) -> Void) -> ((Result<Void, FaceLivenessSessionError>) -> Void) {
{ result in
switch result {
case .success:
case .success(()):
detectionCompletion(.success(()))
case .failure(.invalidRegion):
detectionCompletion(.failure(.invalidRegion))
Expand Down

0 comments on commit 6e84d38

Please sign in to comment.