Skip to content

Commit

Permalink
Merge pull request #17 from kakaopensource/more-appropriate-way-for-p…
Browse files Browse the repository at this point in the history
…attern

replace symbol '~=' with pattern keyword
  • Loading branch information
CoderMJLee authored Aug 26, 2019
2 parents e39c04b + a97a0c5 commit 31a48ed
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion KakaJSON/Extension/Dictionary+KJ.swift
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ extension Dictionary where Key == String {
if value == nil { return nil }
} else if let array = value as? [Any] {
guard let index = Int(subKey),
array.indices ~= index else { return nil }
case array.indices = index else { return nil }
value = array[index]
}
}
Expand Down

0 comments on commit 31a48ed

Please sign in to comment.