Skip to content

Commit

Permalink
Updated naming to be more specific
Browse files Browse the repository at this point in the history
  • Loading branch information
clayellis committed Jul 26, 2016
1 parent 45fa82f commit 35e0b25
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Sources/Unbox.swift
Original file line number Diff line number Diff line change
Expand Up @@ -482,8 +482,8 @@ public class Unboxer {

/// Unbox a required Array containing values of a raw type
public func unbox<T: UnboxableRawType>(key: String, isKeyPath: Bool = true) -> [T] {
if let rawValue = UnboxValueResolver<[T]>(self).resolveOptionalValueForKey(key, isKeyPath: isKeyPath) {
return rawValue
if let rawValueArray = UnboxValueResolver<[T]>(self).resolveOptionalValueForKey(key, isKeyPath: isKeyPath) {
return rawValueArray
}

let transformedStringArray = UnboxValueResolver<[String]>(self).resolveOptionalValueForKey(key, isKeyPath: isKeyPath, transform: { stringArray -> [T]? in
Expand Down

0 comments on commit 35e0b25

Please sign in to comment.