Skip to content

Commit e3ffcba

Browse files
committed
move BetaGroup compare func == to Model package
1 parent 7bc2ece commit e3ffcba

2 files changed

Lines changed: 8 additions & 8 deletions

File tree

Sources/AppStoreConnectCLI/Model/BetaGroup.swift

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -77,14 +77,6 @@ extension BetaGroup {
7777

7878
extension BetaGroup: Hashable {
7979

80-
static func == (lhs: BetaGroup, rhs: BetaGroup) -> Bool {
81-
return lhs.id == rhs.id &&
82-
lhs.groupName == rhs.groupName &&
83-
lhs.publicLinkEnabled == rhs.publicLinkEnabled &&
84-
lhs.publicLinkLimit == rhs.publicLinkLimit &&
85-
lhs.publicLinkLimitEnabled == rhs.publicLinkLimitEnabled
86-
}
87-
8880
public func hash(into hasher: inout Hasher) {
8981
hasher.combine(id)
9082
hasher.combine(groupName)

Sources/Model/BetaGroup.swift

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,4 +37,12 @@ public struct BetaGroup: Codable, Equatable {
3737
self.creationDate = creationDate
3838
self.testers = testers
3939
}
40+
41+
public static func == (lhs: BetaGroup, rhs: BetaGroup) -> Bool {
42+
return lhs.id == rhs.id &&
43+
lhs.groupName == rhs.groupName &&
44+
lhs.publicLinkEnabled == rhs.publicLinkEnabled &&
45+
lhs.publicLinkLimit == rhs.publicLinkLimit &&
46+
lhs.publicLinkLimitEnabled == rhs.publicLinkLimitEnabled
47+
}
4048
}

0 commit comments

Comments
 (0)