Skip to content
Snippets Groups Projects
Commit ad9469c1 authored by Oliver Wiese's avatar Oliver Wiese
Browse files

improve text

parent 72472991
Branches
Tags
No related merge requests found
......@@ -519,7 +519,6 @@ public final class Keychain {
return nil
}
guard let string = String(data: data, encoding: .utf8) else {
print("failed to convert data to string")
throw Status.conversionError
}
return string
......@@ -581,7 +580,6 @@ public final class Keychain {
public func set(_ value: String, key: String) throws {
guard let data = value.data(using: .utf8, allowLossyConversion: false) else {
print("failed to convert string to data")
throw Status.conversionError
}
try set(data, key: key)
......@@ -611,7 +609,6 @@ public final class Keychain {
var (attributes, error) = options.attributes(key: nil, value: value)
if let error = error {
print(error.localizedDescription)
throw error
}
......@@ -636,7 +633,6 @@ public final class Keychain {
case errSecItemNotFound:
var (attributes, error) = options.attributes(key: key, value: value)
if let error = error {
print(error.localizedDescription)
throw error
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment