Skip to content

Commit

Permalink
IOS-5453: Fix some typos and warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
m3g0byt3 committed Dec 24, 2023
1 parent fb0d4be commit fdbe938
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ public class BiometricsStorage {
Log.debug("BiometricsStorage set - status \(status.message) \(status)")

if status == errSecDuplicateItem && overwrite {
var searchQuery: [CFString: Any] = [
let searchQuery: [CFString: Any] = [
kSecClass: kSecClassGenericPassword,
kSecAttrAccount: account,
kSecUseDataProtectionKeychain: true,
Expand Down
4 changes: 2 additions & 2 deletions TangemSdk/TangemSdk/Common/TLV/Tlv.swift
Original file line number Diff line number Diff line change
Expand Up @@ -77,13 +77,13 @@ public struct Tlv: Equatable {
/// - Parameter dataStream: dataStream initialized with raw tlv
private static func readTagLength(_ dataStream: InputStream) -> Int? {
guard let shortLengthBytes = dataStream.readByte() else {
Log.error("Failed to read tag lenght")
Log.error("Failed to read tag length")
return nil
}

if (shortLengthBytes == 0xFF) {
guard let longLengthBytes = dataStream.readBytes(count: 2) else {
Log.error("Failed to read tag long lenght")
Log.error("Failed to read tag long length")
return nil
}

Expand Down

0 comments on commit fdbe938

Please sign in to comment.