Skip to content

Commit

Permalink
Remove check if TOML file exists before calling getParamsTOML, as get…
Browse files Browse the repository at this point in the history
…ParamsTOML also checks if the TOML file exists

Issue #420
  • Loading branch information
MatthewJohn committed May 9, 2024
1 parent c14a06e commit 7df2b96
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions lib/param_parsing/parameters.go
Original file line number Diff line number Diff line change
Expand Up @@ -56,9 +56,7 @@ func GetParameters() Params {
logger = lib.InitLogger(params.LogLevel)
var err error
// Read configuration files
if tomlFileExists(params) {
params, err = getParamsTOML(params)
}
params, err = getParamsTOML(params)
if params.Version == "" {
params, err = GetParamsFromTfSwitch(params)
}
Expand Down

0 comments on commit 7df2b96

Please sign in to comment.