Skip to content

Commit 654a994

Browse files
committed
warnings as errors
1 parent 06f9795 commit 654a994

1 file changed

Lines changed: 5 additions & 6 deletions

File tree

src/Examine.Benchmarks/Program.cs

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -10,12 +10,12 @@ namespace Examine.Benchmarks
1010
{
1111
public class Program
1212
{
13-
public static async Task Main(string[] args)
14-
{
1513
#if RELEASE
16-
// Benchmark your function here.
14+
public static void Main(string[] args) =>
1715
BenchmarkSwitcher.FromAssembly(typeof(Program).Assembly).Run(args);
1816
#else
17+
public static async Task Main(string[] args)
18+
{
1919
var bench = new SearchVersionComparison();
2020
try
2121
{
@@ -27,10 +27,9 @@ public static async Task Main(string[] args)
2727
{
2828
bench.TearDown();
2929
}
30-
30+
}
3131
#endif
32-
// Call your function here.
33-
}
32+
// Call your function here.
3433

3534
#if LocalBuild
3635
private static async Task Threads100(ConcurrentSearchBenchmarks bench)

0 commit comments

Comments
 (0)