Skip to content

Commit df7bd3c

Browse files
committed
Synthesize Equatable conformance for Signature
1 parent c452b80 commit df7bd3c

File tree

2 files changed

+1
-7
lines changed

2 files changed

+1
-7
lines changed

.swiftlint.yml

+1
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,7 @@ opt_in_rules:
5252
- redundant_nil_coalescing
5353
- redundant_type_annotation
5454
- sorted_first_last
55+
- static_operator
5556
- strict_fileprivate
5657
- switch_case_on_newline
5758
- toggle_bool

SwiftGit2/Objects.swift

-7
Original file line numberDiff line numberDiff line change
@@ -83,13 +83,6 @@ extension Signature: Hashable {
8383
}
8484
}
8585

86-
public func == (lhs: Signature, rhs: Signature) -> Bool {
87-
return lhs.name == rhs.name
88-
&& lhs.email == rhs.email
89-
&& lhs.time == rhs.time
90-
&& lhs.timeZone == rhs.timeZone
91-
}
92-
9386
/// A git commit.
9487
public struct Commit: ObjectType, Hashable {
9588
public static let type = GIT_OBJ_COMMIT

0 commit comments

Comments
 (0)