Commit 9d78e988 authored by Oleh Lamzin's avatar Oleh Lamzin Committed by Commit Bot

[Telemetry SWX] Rename converted to convertedValue

Change-Id: I063b84bbe05c7b31f566b90776e8a14a3711d0c3
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2362798Reviewed-by: default avatarMahmoud Gawad <mgawad@google.com>
Commit-Queue: Oleh Lamzin <lamzin@google.com>
Cr-Commit-Position: refs/heads/master@{#799654}
parent 62c16f4c
...@@ -329,11 +329,11 @@ class TelemetryProxy { ...@@ -329,11 +329,11 @@ class TelemetryProxy {
Object.entries(input).forEach(kv => { Object.entries(input).forEach(kv => {
const key = /** @type {!string} */ (kv[0]); const key = /** @type {!string} */ (kv[0]);
const value = /** @type {?Object|string|number|null|undefined} */ (kv[1]); const value = /** @type {?Object|string|number|null|undefined} */ (kv[1]);
const converted = this.convert(value); const convertedValue = this.convert(value);
// 2 rule: omit null/undefined properties. // 2 rule: omit null/undefined properties.
if (converted !== null && typeof converted !== 'undefined') { if (convertedValue !== null && typeof convertedValue !== 'undefined') {
output[key] = converted; output[key] = convertedValue;
} }
}); });
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment