Skip to content

Commit

Permalink
docs: update function comment
Browse files Browse the repository at this point in the history
  • Loading branch information
G-Rath committed Sep 16, 2024
1 parent 1ca1e30 commit af8221f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkg/config/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -205,8 +205,8 @@ func normalizeConfigLoadPath(target string) (string, error) {
return configPath, nil
}

// tryLoadConfig tries to load config in `target` (or it's containing directory)
// `target` will be the key for the entry in configMap
// tryLoadConfig attempts to parse the config file at the given path as TOML,
// returning the Config object if successful or otherwise the error
func tryLoadConfig(configPath string) (Config, error) {
config := Config{LoadPath: configPath}
_, err := toml.DecodeFile(configPath, &config)
Expand Down

0 comments on commit af8221f

Please sign in to comment.