From ae5082f2bda4532aa023b464cc806b04e104307b Mon Sep 17 00:00:00 2001 From: Bradley Grainger Date: Mon, 18 Dec 2023 07:43:27 -0800 Subject: [PATCH] Simplify constructor. Co-authored-by: Adam Sitnik --- src/HealthChecks.MySql/MySqlHealthCheck.cs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/HealthChecks.MySql/MySqlHealthCheck.cs b/src/HealthChecks.MySql/MySqlHealthCheck.cs index 02b7530c0f..8a009836ac 100644 --- a/src/HealthChecks.MySql/MySqlHealthCheck.cs +++ b/src/HealthChecks.MySql/MySqlHealthCheck.cs @@ -12,8 +12,7 @@ public class MySqlHealthCheck : IHealthCheck public MySqlHealthCheck(MySqlHealthCheckOptions options) { - Guard.ThrowIfNull(options); - _options = options; + _options = Guard.ThrowIfNull(options); } ///