Skip to content

Commit

Permalink
Use array shorthand where possible
Browse files Browse the repository at this point in the history
I have no idea why we weren't doing this to begin with.
  • Loading branch information
gfontenot committed Sep 30, 2017
1 parent 8e7437e commit 05e0037
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Sources/Argo/Functions/decode.swift
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ public func decode<T: Decodable>(_ object: Any) -> Decoded<T> where T == T.Decod
- returns: A `Decoded<[T]>` value where `T` is `Decodable`
*/
public func decode<T: Decodable>(_ object: Any) -> Decoded<[T]> where T == T.DecodedType {
return Array<T>.decode(Value(object))
return [T].decode(Value(object))
}

/**
Expand Down

0 comments on commit 05e0037

Please sign in to comment.