Skip to content

Commit d7edce9

Browse files
MyllyenkoIgor Melnichenko
authored andcommitted
Formatting was fixed
Signed-off-by: Igor Melnichenko <[email protected]>
1 parent 358d144 commit d7edce9

File tree

3 files changed

+9
-10
lines changed

3 files changed

+9
-10
lines changed

prometheus-metrics-config/src/main/java/io/prometheus/metrics/config/ExporterHttpServerProperties.java

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -36,12 +36,10 @@ static ExporterHttpServerProperties load(Map<Object, Object> properties)
3636
Util.assertValue(port, t -> t > 0, "Expecting value > 0.", PREFIX, PORT);
3737

3838
Boolean preferUncompressedResponse =
39-
Util.loadBoolean(PREFIX + "." + PREFER_UNCOMPRESSED_RESPONSE, properties);
39+
Util.loadBoolean(PREFIX + "." + PREFER_UNCOMPRESSED_RESPONSE, properties);
4040

4141
return new ExporterHttpServerProperties(
42-
port,
43-
preferUncompressedResponse != null && preferUncompressedResponse
44-
);
42+
port, preferUncompressedResponse != null && preferUncompressedResponse);
4543
}
4644

4745
public static Builder builder() {

prometheus-metrics-config/src/test/java/io/prometheus/metrics/config/ExporterHttpServerPropertiesTest.java

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -24,12 +24,13 @@ void load() {
2424
@Test
2525
void builder() {
2626
ExporterHttpServerProperties properties =
27-
ExporterHttpServerProperties.builder().port(1).build();
27+
ExporterHttpServerProperties.builder().port(1).build();
2828

29-
assertSoftly(softly -> {
30-
softly.assertThat(properties.getPort()).isOne();
31-
softly.assertThat(properties.isPreferUncompressedResponse()).isFalse();
32-
});
29+
assertSoftly(
30+
softly -> {
31+
softly.assertThat(properties.getPort()).isOne();
32+
softly.assertThat(properties.isPreferUncompressedResponse()).isFalse();
33+
});
3334
}
3435

3536
private static ExporterHttpServerProperties load(Map<String, String> map) {

prometheus-metrics-exporter-common/src/main/java/io/prometheus/metrics/exporter/common/PrometheusScrapeHandler.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ public PrometheusScrapeHandler(PrometheusProperties config) {
4646
public PrometheusScrapeHandler(PrometheusProperties config, PrometheusRegistry registry) {
4747
this.expositionFormats = ExpositionFormats.init(config.getExporterProperties());
4848
this.preferUncompressedResponse =
49-
config.getExporterHttpServerProperties().isPreferUncompressedResponse();
49+
config.getExporterHttpServerProperties().isPreferUncompressedResponse();
5050
this.registry = registry;
5151
this.nameFilter = makeNameFilter(config.getExporterFilterProperties());
5252
supportedFormats = new ArrayList<>(Arrays.asList("openmetrics", "text"));

0 commit comments

Comments
 (0)