Skip to content

Commit 2a2a6fe

Browse files
committed
style: format code
1 parent 56c42cf commit 2a2a6fe

File tree

3 files changed

+5
-7
lines changed

3 files changed

+5
-7
lines changed

src/Prometheus.Client.MetricServer/IMetricServer.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ public interface IMetricServer
1414
/// Stop server
1515
/// </summary>
1616
void Stop();
17-
17+
1818
/// <summary>
1919
/// Server is Running?
2020
/// </summary>

src/Prometheus.Client.MetricServer/MetricServer.cs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ public MetricServer(MetricServerOptions options)
2727
:this(null, options)
2828
{
2929
}
30-
30+
3131
/// <summary>
3232
/// Constructor
3333
/// </summary>
@@ -61,7 +61,6 @@ public void Start()
6161
configBuilder.Properties["parent"] = this;
6262
var config = configBuilder.Build();
6363

64-
6564
_host = new WebHostBuilder()
6665
.UseConfiguration(config)
6766
.UseKestrel(options =>

tests/Prometheus.Client.MetricServer.NetCore.Tests/MetricServerTests.cs

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ namespace Prometheus.Client.MetricServer.NetCore.Tests
1010
public class MetricServerTests
1111
{
1212
private const int _port = 5050;
13-
13+
1414
[Fact]
1515
public void Start_Stop_IsRunning()
1616
{
@@ -24,7 +24,6 @@ public void Start_Stop_IsRunning()
2424
[Fact]
2525
public async Task Base_MapPath()
2626
{
27-
2827
var metricServer = new MetricServer(new CollectorRegistry(), new MetricServerOptions { Port = _port });
2928
metricServer.Start();
3029

@@ -36,7 +35,7 @@ public async Task Base_MapPath()
3635

3736
metricServer.Stop();
3837
}
39-
38+
4039
[Fact]
4140
public async Task MapPath_WithEndSlash()
4241
{
@@ -53,7 +52,7 @@ public async Task MapPath_WithEndSlash()
5352

5453
metricServer.Stop();
5554
}
56-
55+
5756
[Fact]
5857
public void Wrong_MapPath()
5958
{

0 commit comments

Comments
 (0)