Correct found order merge
This commit is contained in:
parent
aa73b24291
commit
38dbfa6f4a
|
@ -31,7 +31,7 @@ struct FeedSpecifier: Hashable {
|
||||||
|
|
||||||
let mergedTitle = title ?? feedSpecifier.title
|
let mergedTitle = title ?? feedSpecifier.title
|
||||||
let mergedSource = source.equalToOrBetterThan(feedSpecifier.source) ? source : feedSpecifier.source
|
let mergedSource = source.equalToOrBetterThan(feedSpecifier.source) ? source : feedSpecifier.source
|
||||||
let mergedOrderFound = orderFound >= feedSpecifier.orderFound ? orderFound : feedSpecifier.orderFound
|
let mergedOrderFound = orderFound < feedSpecifier.orderFound ? orderFound : feedSpecifier.orderFound
|
||||||
|
|
||||||
return FeedSpecifier(title: mergedTitle, urlString: urlString, source: mergedSource, orderFound: mergedOrderFound)
|
return FeedSpecifier(title: mergedTitle, urlString: urlString, source: mergedSource, orderFound: mergedOrderFound)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue