Skip to content
This repository has been archived by the owner on Sep 20, 2023. It is now read-only.

Added labels equatable check to ListDiffable isEqual method #716

Merged
merged 1 commit into from
Oct 25, 2017

Conversation

joerocca
Copy link
Member

Fixes #715

Copy link
Collaborator

@BasThomas BasThomas left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Swift 4.1 please Swift 4.1 please Swift 4.1 please 😇 (this is why)

@Iron-Ham
Copy link
Member

@BasThomas that 4.1 change is doooooope

@rnystrom
Copy link
Member

omfg, pls

Sent with GitHawk

@BasThomas
Copy link
Collaborator

And it's getting even better, potentially! apple/swift#12598

@@ -56,5 +56,6 @@ class RepositoryIssueSummaryModel: ListDiffable {
&& author == object.author
&& created == object.created
&& title.attributedText.string == object.title.attributedText.string
&& labels == object.labels
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Note that this check is O(n) (comparing all contents of an array). I'm going to clean this up to be much faster.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants