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

Removed Equatable comformance from RepositoryLabel #743

Merged
merged 1 commit into from
Oct 27, 2017
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 1 addition & 8 deletions Classes/Models/RepositoryLabel.swift
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
import Foundation
import IGListKit

final class RepositoryLabel: ListDiffable, Equatable {
final class RepositoryLabel: ListDiffable {

let color: String
let name: String
Expand All @@ -30,12 +30,5 @@ final class RepositoryLabel: ListDiffable, Equatable {
guard let object = object as? RepositoryLabel else { return false }
return color == object.color
}

//MARK: Equatable

static func ==(lhs: RepositoryLabel, rhs: RepositoryLabel) -> Bool {
return lhs.name == rhs.name
&& lhs.color == rhs.color
}

}