Skip to content

Commit fdbe938

Browse files
committed
IOS-5453: Fix some typos and warnings
1 parent fb0d4be commit fdbe938

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

TangemSdk/TangemSdk/Common/Services/Secure/BiometricsStorage.swift

+1-1
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ public class BiometricsStorage {
6464
Log.debug("BiometricsStorage set - status \(status.message) \(status)")
6565

6666
if status == errSecDuplicateItem && overwrite {
67-
var searchQuery: [CFString: Any] = [
67+
let searchQuery: [CFString: Any] = [
6868
kSecClass: kSecClassGenericPassword,
6969
kSecAttrAccount: account,
7070
kSecUseDataProtectionKeychain: true,

TangemSdk/TangemSdk/Common/TLV/Tlv.swift

+2-2
Original file line numberDiff line numberDiff line change
@@ -77,13 +77,13 @@ public struct Tlv: Equatable {
7777
/// - Parameter dataStream: dataStream initialized with raw tlv
7878
private static func readTagLength(_ dataStream: InputStream) -> Int? {
7979
guard let shortLengthBytes = dataStream.readByte() else {
80-
Log.error("Failed to read tag lenght")
80+
Log.error("Failed to read tag length")
8181
return nil
8282
}
8383

8484
if (shortLengthBytes == 0xFF) {
8585
guard let longLengthBytes = dataStream.readBytes(count: 2) else {
86-
Log.error("Failed to read tag long lenght")
86+
Log.error("Failed to read tag long length")
8787
return nil
8888
}
8989

0 commit comments

Comments
 (0)