mirror of
https://github.com/zhigang1992/GitHawk.git
synced 2026-06-05 06:49:56 +08:00
removed unneccessary equatable comformance from RepositoryLabel (#743)
This commit is contained in:
@@ -9,7 +9,7 @@
|
||||
import Foundation
|
||||
import IGListKit
|
||||
|
||||
final class RepositoryLabel: ListDiffable, Equatable {
|
||||
final class RepositoryLabel: ListDiffable {
|
||||
|
||||
let color: String
|
||||
let name: String
|
||||
@@ -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
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user