Skip to content

Commit 16920c7

Browse files
wip: clean up
1 parent 2c29e82 commit 16920c7

File tree

2 files changed

+2
-6
lines changed

2 files changed

+2
-6
lines changed

Sources/Data Model/ExperimentCore.swift

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,7 @@
1616

1717
import Foundation
1818

19-
protocol ExperimentCore {
20-
var id: String { get }
21-
var key: String { get }
19+
protocol ExperimentCore: OptimizelyExperiment {
2220
var audiences: String { get set }
2321
var layerId: String { get }
2422
var variations: [Variation] { get }

Sources/Data Model/Holdout.swift

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -39,11 +39,10 @@ struct Holdout: Codable, ExperimentCore {
3939
case id, key, status, layerId, variations, trafficAllocation, audienceIds, audienceConditions, includedFlags, excludedFlags
4040
}
4141

42-
var variationsMap: [String : OptimizelyVariation] = [:]
42+
var variationsMap: [String: OptimizelyVariation] = [:]
4343
// replace with serialized string representation with audience names when ProjectConfig is ready
4444
var audiences: String = ""
4545

46-
4746
init(from decoder: Decoder) throws {
4847
let container = try decoder.container(keyedBy: CodingKeys.self)
4948

@@ -76,7 +75,6 @@ extension Holdout: Equatable {
7675
}
7776
}
7877

79-
8078
extension Holdout {
8179
var isActivated: Bool {
8280
return status == .running

0 commit comments

Comments
 (0)