Skip to content

Commit

Permalink
Remove redundant function
Browse files Browse the repository at this point in the history
  • Loading branch information
miguelreiswildlife committed Jan 14, 2025
1 parent 83f5d6a commit 402778f
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions extensions/common.go
Original file line number Diff line number Diff line change
Expand Up @@ -39,19 +39,15 @@ type ParsedTopic struct {
Game string
}

func getGameAndPlatformFromTopic(topic string) ParsedTopic {
// GetGameAndPlatformFromTopic returns the game and platform specified in the Kafka topic
func GetGameAndPlatformFromTopic(topic string) ParsedTopic {
res := topicRegex.FindStringSubmatch(topic)
return ParsedTopic{
Platform: res[2],
Game: res[1],
}
}

// GetGameAndPlatformFromTopic returns the game and plaform specified in the Kafka topic
func GetGameAndPlatformFromTopic(topic string) ParsedTopic {
return getGameAndPlatformFromTopic(topic)
}

func SendToFeedbackReporters(feedbackReporters []interfaces.FeedbackReporter, res interface{}, topic ParsedTopic) error {
jres, err := json.Marshal(res)
if err != nil {
Expand Down

0 comments on commit 402778f

Please sign in to comment.