From f015521e4ac67946d322aa4df4fb63a12345e5cc Mon Sep 17 00:00:00 2001 From: Vsevolod Stakhov Date: Fri, 27 May 2022 21:00:49 +0100 Subject: [Minor] Remove legacy `default` metric --- lualib/lua_scanners/common.lua | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'lualib/lua_scanners/common.lua') diff --git a/lualib/lua_scanners/common.lua b/lualib/lua_scanners/common.lua index 2d4f2cf63..c2e314d39 100644 --- a/lualib/lua_scanners/common.lua +++ b/lualib/lua_scanners/common.lua @@ -183,8 +183,8 @@ end local function dynamic_scan(task, rule) if rule.dynamic_scan then if rule.action ~= 'reject' then - local metric_result = task:get_metric_score('default') - local metric_action = task:get_metric_action('default') + local metric_result = task:get_metric_score() + local metric_action = task:get_metric_action() local has_pre_result = task:has_pre_result() -- ToDo: needed? -- Sometimes leads to FPs @@ -482,8 +482,8 @@ end local function check_metric_results(task, rule) if rule.action ~= 'reject' then - local metric_result = task:get_metric_score('default') - local metric_action = task:get_metric_action('default') + local metric_result = task:get_metric_score() + local metric_action = task:get_metric_action() local has_pre_result = task:has_pre_result() if rule.symbol_type == 'postfilter' and metric_action == 'reject' then -- cgit v1.2.3