Jelajahi Sumber

Fix resharper warnings

Nick Babcock 4 tahun lalu
induk
melakukan
018bcfab31

+ 2 - 2
OhmGraphite.Test/TimescaleTest.cs

@@ -18,7 +18,7 @@ namespace OhmGraphite.Test
                 .WithEnvironment("POSTGRES_PASSWORD", "123456")
                 .WithPortBinding(5432, assignRandomHostPort: true)
                 .WithWaitStrategy(Wait.ForUnixContainer()
-                    .UntilCommandIsCompleted($"pg_isready -h 'localhost' -p '5432'"));
+                    .UntilCommandIsCompleted("pg_isready -h 'localhost' -p '5432'"));
 
             await using var container = testContainersBuilder.Build();
             await container.StartAsync();
@@ -50,7 +50,7 @@ namespace OhmGraphite.Test
                 .WithEnvironment("POSTGRES_PASSWORD", "123456")
                 .WithPortBinding(5432, assignRandomHostPort: true)
                 .WithWaitStrategy(Wait.ForUnixContainer()
-                    .UntilCommandIsCompleted($"pg_isready -h 'localhost' -p '5432'"));
+                    .UntilCommandIsCompleted("pg_isready -h 'localhost' -p '5432'"));
 
             await using var container = testContainersBuilder.Build();
             await container.StartAsync();

+ 0 - 1
OhmGraphite/InfluxWriter.cs

@@ -5,7 +5,6 @@ using System.Threading.Tasks;
 using InfluxDB.LineProtocol.Client;
 using InfluxDB.LineProtocol.Payload;
 using NLog;
-using LibreHardwareMonitor.Hardware;
 
 namespace OhmGraphite
 {

+ 0 - 3
OhmGraphite/OhmSensor.cs

@@ -1,8 +1,5 @@
 using System;
 using System.Collections.Generic;
-using System.Linq;
-using System.Text;
-using System.Threading.Tasks;
 using LibreHardwareMonitor.Hardware;
 
 namespace OhmGraphite

+ 0 - 1
OhmGraphite/PrometheusCollection.cs

@@ -1,7 +1,6 @@
 using System;
 using System.Text.RegularExpressions;
 using NLog;
-using LibreHardwareMonitor.Hardware;
 using Prometheus;
 
 namespace OhmGraphite