Skip to content

Commit

Permalink
Shorten lambda statement
Browse files Browse the repository at this point in the history
  • Loading branch information
nickbabcock committed Nov 1, 2017
1 parent f28d5fd commit 012592e
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions OhmGraphite/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -40,10 +40,7 @@ static void Main(string[] args)
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"));
});
}

Expand Down

0 comments on commit 012592e

Please sign in to comment.