Skip to content

Commit a56f61e

Browse files
committed
Fix style issues
1 parent d2747a0 commit a56f61e

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

exporters/prometheus/src/exporter_utils.cc

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,6 @@ std::vector<prometheus_client::MetricFamily> PrometheusExporterUtils::TranslateT
154154
metric_family.name = MapToPrometheusName(metric_data.instrument_descriptor.name_,
155155
metric_data.instrument_descriptor.unit_, type,
156156
without_units, without_type_suffix);
157-
// TODO (psx95): Add tests to check compliance
158157
metric_family.type = type;
159158
const opentelemetry::sdk::instrumentationscope::InstrumentationScope *scope =
160159
without_otel_scope ? nullptr : instrumentation_info.scope_;
@@ -500,12 +499,13 @@ std::string PrometheusExporterUtils::MapToPrometheusName(
500499
bool without_units,
501500
bool without_type_suffix)
502501
{
503-
auto sanitized_name = SanitizeNames(name);
502+
auto sanitized_name = SanitizeNames(name);
504503
std::string prometheus_equivalent_unit;
505504
if (without_units)
506505
{
507506
prometheus_equivalent_unit = "";
508-
} else
507+
}
508+
else
509509
{
510510
prometheus_equivalent_unit = GetEquivalentPrometheusUnit(unit);
511511
}

0 commit comments

Comments
 (0)