diff --git a/userspace/falco/app/actions/helpers_inspector.cpp b/userspace/falco/app/actions/helpers_inspector.cpp index 9620f5d479f..3a3624431d7 100644 --- a/userspace/falco/app/actions/helpers_inspector.cpp +++ b/userspace/falco/app/actions/helpers_inspector.cpp @@ -61,15 +61,9 @@ falco::app::run_result falco::app::actions::open_live_inspector(falco::app::stat falco_logger::log( falco_logger::level::INFO, "Opening '" + source + "' source with plugin '" + cfg->m_name + "'"); - if(s.config->m_plugins_hostinfo) { - inspector->open_plugin(cfg->m_name, - cfg->m_open_params, - sinsp_plugin_platform::SINSP_PLATFORM_HOSTINFO); - } else { - inspector->open_plugin(cfg->m_name, - cfg->m_open_params, - sinsp_plugin_platform::SINSP_PLATFORM_GENERIC); - } + inspector->open_plugin(cfg->m_name, + cfg->m_open_params, + s.config->m_plugins_hostinfo ? sinsp_plugin_platform::SINSP_PLATFORM_HOSTINFO : sinsp_plugin_platform::SINSP_PLATFORM_GENERIC); return run_result::ok(); } }