Skip to content

Commit

Permalink
Synthesize Equatable conformance for Signature
Browse files Browse the repository at this point in the history
  • Loading branch information
mattrubin committed Apr 12, 2019
1 parent c452b80 commit df7bd3c
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 7 deletions.
1 change: 1 addition & 0 deletions .swiftlint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@ opt_in_rules:
- redundant_nil_coalescing
- redundant_type_annotation
- sorted_first_last
- static_operator
- strict_fileprivate
- switch_case_on_newline
- toggle_bool
Expand Down
7 changes: 0 additions & 7 deletions SwiftGit2/Objects.swift
Original file line number Diff line number Diff line change
Expand Up @@ -83,13 +83,6 @@ extension Signature: Hashable {
}
}

public func == (lhs: Signature, rhs: Signature) -> Bool {
return lhs.name == rhs.name
&& lhs.email == rhs.email
&& lhs.time == rhs.time
&& lhs.timeZone == rhs.timeZone
}

/// A git commit.
public struct Commit: ObjectType, Hashable {
public static let type = GIT_OBJ_COMMIT
Expand Down

0 comments on commit df7bd3c

Please sign in to comment.