From 1a6f26632ca999a608408937086183462e74056d Mon Sep 17 00:00:00 2001 From: Jan Orel Date: Thu, 18 Feb 2021 08:41:02 +0100 Subject: [PATCH] L #-: Lint monitord-client.rb (#833) --- src/im_mad/remotes/common.d/monitord-client.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/im_mad/remotes/common.d/monitord-client.rb b/src/im_mad/remotes/common.d/monitord-client.rb index 0763c44fb0..3643d81ff6 100644 --- a/src/im_mad/remotes/common.d/monitord-client.rb +++ b/src/im_mad/remotes/common.d/monitord-client.rb @@ -284,8 +284,8 @@ probes.each do |msg_type, conf| da.strip! next if da.empty? - smethod = conf[:method_name] ? conf[:method_name] : msg_type - + smethod = conf[:method_name] || msg_type + client.send(smethod, result == 0, da) end end