Skip to content

Commit

Permalink
Merge pull request #440 from nextmv-io/merschformann/fix-golden-nil-p…
Browse files Browse the repository at this point in the history
…anic

Fixes a nil pointer panic in golden file testing
  • Loading branch information
merschformann authored Mar 15, 2024
2 parents 3020e57 + 70b6ac2 commit 9a48eca
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions golden/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -226,7 +226,7 @@ func (config Config) entrypoint(inputPath string) (*exec.Cmd, string, error) {
}
} else {
inputFlag := "-runner.input.path"
if config.ExecutionConfig.InputFlag != "" {
if isCustom && config.ExecutionConfig.InputFlag != "" {
inputFlag = config.ExecutionConfig.InputFlag
}
args = append(args, inputFlag, inputPath)
Expand All @@ -251,7 +251,7 @@ func (config Config) entrypoint(inputPath string) (*exec.Cmd, string, error) {
}
} else {
outputFlag := "-runner.output.path"
if config.ExecutionConfig.OutputFlag != "" {
if isCustom && config.ExecutionConfig.OutputFlag != "" {
outputFlag = config.ExecutionConfig.OutputFlag
}
args = append(args, outputFlag, tempFileName)
Expand Down

0 comments on commit 9a48eca

Please sign in to comment.