Skip to content

Commit b835796

Browse files
committed
Remove unnecessary type parameter
1 parent 221987c commit b835796

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

ObjectMapper/Core/Mapper.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ public class Map {
4949
/**
5050
* Fetch value from JSON dictionary, loop through them until we reach the desired object.
5151
*/
52-
private func valueFor<N>(keyPathComponents: [String], dictionary: [String : AnyObject]) -> N? {
52+
private func valueFor(keyPathComponents: [String], dictionary: [String : AnyObject]) -> AnyObject? {
5353
// Implement it as a tail recursive function.
5454

5555
if keyPathComponents.isEmpty {
@@ -66,7 +66,7 @@ private func valueFor<N>(keyPathComponents: [String], dictionary: [String : AnyO
6666
return valueFor(tail, dict)
6767

6868
default:
69-
return object as? N
69+
return object
7070
}
7171
}
7272

0 commit comments

Comments
 (0)