Skip to content

Commit 62db236

Browse files
author
Sheen
committed
STRFRAMEWORK-1674: Code review fix
1 parent 4470380 commit 62db236

2 files changed

Lines changed: 6 additions & 8 deletions

File tree

Plist2swift/Plist2swift

0 Bytes
Binary file not shown.

Plist2swift/Plist2swift.swift

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -94,15 +94,13 @@ private func isKeyPresentInOptionalDictionary(keyToSearch: String, tupleKey: Str
9494

9595
private func isKeyAvailableInAllPlists(keyToSearch: String, tupleKey: String, tuplesForPlists: [String: KeyValueTuples]) -> Bool {
9696
for plistPath in tuplesForPlists.keys {
97-
98-
guard
97+
if
9998
let tuples = tuplesForPlists[plistPath],
100-
let dictionary = tuples[tupleKey] as? Dictionary<String, Any>else {
101-
return false
102-
}
103-
104-
if (dictionary.keys.contains(keyToSearch) == false) {
105-
return false
99+
let dictionary = tuples[tupleKey] as? Dictionary<String, Any> {
100+
101+
if (dictionary.keys.contains(keyToSearch) == false) {
102+
return false
103+
}
106104
}
107105
}
108106

0 commit comments

Comments
 (0)