Skip to content

Commit 31a48ed

Browse files
authored
Merge pull request #17 from kakaopensource/more-appropriate-way-for-pattern
replace symbol '~=' with pattern keyword
2 parents e39c04b + a97a0c5 commit 31a48ed

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

KakaJSON/Extension/Dictionary+KJ.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ extension Dictionary where Key == String {
8989
if value == nil { return nil }
9090
} else if let array = value as? [Any] {
9191
guard let index = Int(subKey),
92-
array.indices ~= index else { return nil }
92+
case array.indices = index else { return nil }
9393
value = array[index]
9494
}
9595
}

0 commit comments

Comments
 (0)