Skip to content

Commit

Permalink
Fix: use of global variable
Browse files Browse the repository at this point in the history
  • Loading branch information
tr4cks committed May 17, 2024
1 parent 4796254 commit 7540895
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -67,9 +67,9 @@ func parseYAMLFile(filePath string) (*Config, error) {
}

func parseConfigFile(filePath string) *Config {
config, err := parseYAMLFile(configFilePath)
config, err := parseYAMLFile(filePath)
if err != nil {
fmt.Fprintf(os.Stderr, "Failed to parse YAML file %q: %s\n", configFilePath, err)
fmt.Fprintf(os.Stderr, "Failed to parse YAML file %q: %s\n", filePath, err)
os.Exit(1)
}

Expand Down

0 comments on commit 7540895

Please sign in to comment.