Skip to content
This repository has been archived by the owner on Apr 26, 2023. It is now read-only.

Commit

Permalink
Merge pull request #110 from VerizonAdPlatforms/telemetry-hot-fix
Browse files Browse the repository at this point in the history
Removed extra "data" key
  • Loading branch information
balavor committed Apr 12, 2019
2 parents 322de6f + 7b05329 commit 62c99df
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
6 changes: 2 additions & 4 deletions sources/telemetry/Metrics.swift
Original file line number Diff line number Diff line change
Expand Up @@ -534,10 +534,8 @@ extension Telemetry.Metrics.OpenMeasurement {

func telemetryJSøN(withContext context: JSON, type: String, value: JSøN = .null) -> Telemetry.TelemetryJSON {
let data: JSøN = [
"data" : [
"type" : type |> json,
"value": value
] |> json
"type" : type |> json,
"value": value
] |> json
return Telemetry.TelemetryJSON(context: context, data: data)
}
2 changes: 0 additions & 2 deletions sources/telemetry/TelemetryMetricsTest.swift
Original file line number Diff line number Diff line change
Expand Up @@ -326,10 +326,8 @@ class TelemetryMetricsTest: XCTestCase {

private func telemetryJSON(for type: String, and value: [String: JSøN]) -> Telemetry.TelemetryJSON {
let data: [String: JSøN] = [
"data" : [
"type" : type |> json,
"value": value |> json
] |> json
]
return .init(context: [:], data: data |> json)
}
Expand Down

0 comments on commit 62c99df

Please sign in to comment.