Skip to content

Commit 2b4d17e

Browse files
committed
agents: fix linting errors
1 parent 3c92c0a commit 2b4d17e

1 file changed

Lines changed: 6 additions & 6 deletions

File tree

agents/otlp/src/otlp_common.cc

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -407,17 +407,17 @@ void fill_recordable(Recordable* recordable, const Tracer::SpanStor& s) {
407407

408408
for (const auto& attr : attrs.items()) {
409409
const json val = attr.value();
410-
if (val.is_boolean())
410+
if (val.is_boolean()) {
411411
recordable->SetAttribute(attr.key(), attr.value().get<bool>());
412-
else if (val.is_number_integer())
412+
} else if (val.is_number_integer()) {
413413
recordable->SetAttribute(attr.key(), attr.value().get<int64_t>());
414-
else if (val.is_number_unsigned())
414+
} else if (val.is_number_unsigned()) {
415415
recordable->SetAttribute(attr.key(), attr.value().get<uint64_t>());
416-
else if (val.is_number_float())
416+
} else if (val.is_number_float()) {
417417
recordable->SetAttribute(attr.key(), attr.value().get<double>());
418-
else if (val.is_string())
418+
} else if (val.is_string()) {
419419
recordable->SetAttribute(attr.key(), attr.value().get<std::string>());
420-
else if (val.is_array()) {
420+
} else if (val.is_array()) {
421421
// Handle arrays of primitive types according to OpenTelemetry spec.
422422
if (val.empty()) {
423423
// Skip empty arrays

0 commit comments

Comments
 (0)