From 0322c338c39b886e9eead2a837a390f3ce3f0e55 Mon Sep 17 00:00:00 2001 From: TibebeJs Date: Sun, 31 Oct 2021 02:01:45 +0300 Subject: [PATCH] add missing err checkings --- main.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.go b/main.go index 6199535..2dc6170 100644 --- a/main.go +++ b/main.go @@ -28,7 +28,7 @@ type HealthCheckStrategyChooser struct{} func (runner *HealthCheckStrategyChooser) Parse(configuration c.TargetConfigurations) (s.Strategy, error) { var portConfigurationsStrategyCheck portConfigurationsStrategyCheck - mapstructure.Decode(configuration, &portConfigurationsStrategyCheck) + utils.Check(mapstructure.Decode(configuration, &portConfigurationsStrategyCheck)) switch portConfigurationsStrategyCheck.Strategy { case "ping":