Skip to content

Commit

Permalink
refactor: Remove extraneous if-statement from ftl-project.toml path…
Browse files Browse the repository at this point in the history
… logic (#1276)

a NOOP followup to PR
#1273 (comment)
  • Loading branch information
deniseli authored Apr 16, 2024
1 parent cdca0a0 commit e6ddabe
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions common/configuration/projectconfig_resolver.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}

0 comments on commit e6ddabe

Please sign in to comment.