Skip to content

Commit

Permalink
FIX lint error
Browse files Browse the repository at this point in the history
  • Loading branch information
MP0w committed Sep 10, 2016
1 parent 7d72f0d commit b533124
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Source/JSONAPISerializer.swift
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@ extension Array: JSONAPISerializable {
public func includedRelationships(includeChildren: Bool, keyTransformer: KeyTransformer?) -> [AnyObject]? {
guard Element.self is JSONAPISerializable.Type else { return nil }
let includedRelationships = flatMap { ($0 as? JSONAPISerializable)?.includedRelationships(includeChildren, keyTransformer: keyTransformer) }.flatMap { $0 }
return includedRelationships.count > 0 ? includedRelationships : nil
return includedRelationships.isEmpty ? nil : includedRelationships
}

private func unifiedIncludedRelationships() -> [AnyObject] {
Expand Down

0 comments on commit b533124

Please sign in to comment.