From e6ddabe2c94e5f2e4bf33af4943e4857743700ba Mon Sep 17 00:00:00 2001 From: Denise Li Date: Mon, 15 Apr 2024 23:58:24 -0400 Subject: [PATCH] refactor: Remove extraneous if-statement from `ftl-project.toml` path logic (#1276) a NOOP followup to PR https://github.com/TBD54566975/ftl/pull/1273#discussion_r1566641940 --- common/configuration/projectconfig_resolver.go | 3 --- 1 file changed, 3 deletions(-) diff --git a/common/configuration/projectconfig_resolver.go b/common/configuration/projectconfig_resolver.go index 5becd68eef..15d36cc296 100644 --- a/common/configuration/projectconfig_resolver.go +++ b/common/configuration/projectconfig_resolver.go @@ -150,8 +150,5 @@ func (p ProjectConfigResolver[R]) setMapping(config pc.Config, module optional.O set(&config.Global, mapping) } configPaths := pc.ConfigPaths(p.Config) - if len(configPaths) == 0 { - return pc.Save(pc.GetDefaultConfigPath(), config) - } return pc.Save(configPaths[len(configPaths)-1], config) }