Skip to content

Commit

Permalink
Refactor OID Equatable conformance to be a static method
Browse files Browse the repository at this point in the history
  • Loading branch information
mattrubin committed Apr 12, 2019
1 parent 743083d commit e1acee3
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions SwiftGit2/OID.swift
Original file line number Diff line number Diff line change
Expand Up @@ -62,10 +62,10 @@ extension OID: Hashable {
hasher.combine(bytes: $0)
}
}
}

public func == (lhs: OID, rhs: OID) -> Bool {
var left = lhs.oid
var right = rhs.oid
return git_oid_cmp(&left, &right) == 0
public static func == (lhs: OID, rhs: OID) -> Bool {
var left = lhs.oid
var right = rhs.oid
return git_oid_cmp(&left, &right) == 0
}
}

0 comments on commit e1acee3

Please sign in to comment.