Skip to content

Commit

Permalink
Merge pull request #9 from tkhq/fix/missing-return
Browse files Browse the repository at this point in the history
Fix missing return statement in guard statement
  • Loading branch information
taylorjdawson authored Nov 28, 2024
2 parents 70d94c6 + 6667926 commit 35a3f20
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ The TurnkeySDK is built to support macOS, iOS, tvOS, watchOS, and visionOS, maki
To integrate the TurnkeySDK into your Swift project, you need to add it as a dependency in your Package.swift file:

```swift
.package(url: "https://github.com/tkhq/swift-sdk", from: "1.2.0")
.package(url: "https://github.com/tkhq/swift-sdk", from: "1.2.1")
```

## Usage
Expand Down
8 changes: 6 additions & 2 deletions Sources/Shared/Stamper.swift
Original file line number Diff line number Diff line change
Expand Up @@ -117,10 +117,14 @@ public class Stamper {
}
}

guard let challenge = payload.compactMap { String(format: "%02x", $0) }.joined().data(using: .utf8) else {
guard
let challenge = payload.compactMap({ String(format: "%02x", $0) }).joined().data(
using: .utf8)
else {
continuation.resume(throwing: StampError.assertionFailed)
return
}

self.passkeyManager?.assertPasskey(challenge: challenge)
}
}
Expand Down

0 comments on commit 35a3f20

Please sign in to comment.