Fix a bug of showing digital entries

This commit is contained in:
Yishi Lin 2018-05-21 01:28:00 +08:00
parent 767b732e7f
commit 89a2018e89

View file

@ -149,7 +149,7 @@ public class Password {
if checkDuplicatedFields(lines: fromYaml) {
throw AppError.YamlLoadError
}
guard let yamlFile = try Yams.load(yaml: fromYaml) as? [String: Any] else {
guard let yamlFile = try Yams.load(yaml: fromYaml) as? [String: String] else {
throw AppError.YamlLoadError
}
additions.append(contentsOf: yamlFile.map { ($0, String(describing: $1)) })