Browse Source

Shorten lambda statement

Nick Babcock 7 years ago
parent
commit
012592e7d5
1 changed files with 1 additions and 4 deletions
  1. 1 4
      OhmGraphite/Program.cs

+ 1 - 4
OhmGraphite/Program.cs

@@ -40,10 +40,7 @@ namespace OhmGraphite
                 x.SetDescription("Extract hardware sensor data and exports it to a given host and port in a graphite compatible format");
                 x.SetDisplayName("Ohm Graphite");
                 x.SetServiceName("OhmGraphite");
-                x.OnException(ex =>
-                {
-                    Logger.Error(ex, "OhmGraphite TopShelf encountered an error");
-                });
+                x.OnException(ex => Logger.Error(ex, "OhmGraphite TopShelf encountered an error"));
             });
         }