diff --git a/gateway/src/commands/helpers.rs b/gateway/src/commands/helpers.rs index f1ddb1a26a..043288db42 100644 --- a/gateway/src/commands/helpers.rs +++ b/gateway/src/commands/helpers.rs @@ -88,14 +88,15 @@ impl OverrideConfig { if config.network_requester.enabled && config.storage_paths.network_requester_config.is_none() { - Ok(config.with_default_network_requester_config_path()) - } else if config.ip_packet_router.enabled - && config.storage_paths.ip_packet_router_config.is_none() - { - Ok(config.with_default_ip_packet_router_config_path()) - } else { - Ok(config) + config = config.with_default_network_requester_config_path(); } + + if config.ip_packet_router.enabled && config.storage_paths.ip_packet_router_config.is_none() + { + config = config.with_default_ip_packet_router_config_path(); + } + + Ok(config) } }