Commit 9c765493 authored by Jose Blaya's avatar Jose Blaya
Browse files

Refactor

parent ab9dea77
......@@ -42,7 +42,7 @@ class UserDefaultsStore: PlainStore, ConfigurationAccess {
static let trustCellularData = "TrustCellularData"
static let authMigrationSuccess = "AuthMigrationSuccess"
static let authMigrationSuccess = "TokenMigrationSuccess"
static let shouldConnectForAllNetworks = "ShouldConnectForAllNetworks"
......
......@@ -29,9 +29,13 @@ extension Data {
return nil
}
return withUnsafeBytes { (c_key: UnsafePointer<UInt8>) in
return withUnsafeBytes { (c_key: UnsafePointer<UInt8>?) in
var idx = 0
guard let c_key = c_key else {
return nil
}
guard (c_key[idx] == 0x30) else {
return nil
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment