Fix SwiftLint violation

This commit is contained in:
JP Simard 2018-04-29 17:43:46 -07:00
parent 35ca190308
commit faa2541f53
No known key found for this signature in database
GPG Key ID: 184C3F2916202C58
2 changed files with 1 additions and 3 deletions

View File

@ -441,7 +441,6 @@ extension Array {
return sequence.map(sequence.tag.constructor.any)
}
/// Construct an "O-map" (array of `(Any, Any)` tuples) from the specified `sequence`.
///
/// - parameter sequence: Sequence to convert to `Array<(Any, Any)>`.

View File

@ -155,8 +155,7 @@ extension Node.Mapping {
/// Set or get the specified `Node`.
public subscript(node: Node) -> Node? {
get {
let v = pairs.reversed().first(where: { $0.key == node })
return v?.value
return pairs.reversed().first(where: { $0.key == node })?.value
}
set {
if let newValue = newValue {