Skip to content

Commit

Permalink
clean up eventDiscriminator
Browse files Browse the repository at this point in the history
  • Loading branch information
vegaro committed Dec 2, 2024
1 parent 3b03d83 commit df2d7e4
Showing 1 changed file with 2 additions and 10 deletions.
12 changes: 2 additions & 10 deletions Sources/CustomerCenter/Events/CustomerCenterEvent.swift
Original file line number Diff line number Diff line change
Expand Up @@ -46,11 +46,7 @@ public enum CustomerCenterEvent: FeatureEvent {
return .customerCenter
}

var eventDiscriminator: String? {
switch self {
case .impression: return "impression"
}
}
var eventDiscriminator: String? { "impression" }

/// The Customer Center was displayed.
case impression(CreationData, Data)
Expand All @@ -66,11 +62,7 @@ public enum CustomerCenterSurveyOptionChosenEvent: FeatureEvent {
return .customerCenter
}

var eventDiscriminator: String? {
switch self {
case .surveyOptionChosen: return "survey_option_chosen"
}
}
var eventDiscriminator: String? { "survey_option_chosen" }

/// A feedback survey was completed with a particular option.
case surveyOptionChosen(CreationData, Data)
Expand Down

0 comments on commit df2d7e4

Please sign in to comment.