From b394e157c60ae88543a513fb89c5228e6afbf6df Mon Sep 17 00:00:00 2001 From: Andrea Terzolo Date: Mon, 20 Nov 2023 12:02:16 +0100 Subject: [PATCH] cleanup: remove `init` in the configuration constructor This `init({});` in the falco_configuration constructor is unnecessary since when we call the action `load_config`, if we don't have a config file, we will call the same `init` we have just removed. This cleanup avoids calling `falco_configuration::init` 2 times. Signed-off-by: Andrea Terzolo --- userspace/falco/configuration.cpp | 1 - 1 file changed, 1 deletion(-) diff --git a/userspace/falco/configuration.cpp b/userspace/falco/configuration.cpp index e36fe3be735..4fa0fb662df 100644 --- a/userspace/falco/configuration.cpp +++ b/userspace/falco/configuration.cpp @@ -78,7 +78,6 @@ falco_configuration::falco_configuration(): m_metrics_convert_memory_to_mb(true), m_metrics_include_empty_values(false) { - init({}); } void falco_configuration::init(const std::vector& cmdline_options)