Skip to content

Commit

Permalink
changed to get method
Browse files Browse the repository at this point in the history
  • Loading branch information
softScheck committed Jun 17, 2024
1 parent d0f80dc commit 6568abb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkg/report/generate.go
Original file line number Diff line number Diff line change
Expand Up @@ -78,14 +78,14 @@ func Generate(config reportConfigReader, readResult *model.ReadResult, commands

if commands.ReportPDF { // as the PDF report includes both diagrams
if !generateDataFlowDiagram {
dataFlowFile := filepath.Join(config.OutputFolder, config.DataFlowDiagramFilenamePNG)
dataFlowFile := filepath.Join(config.GetOutputFolder(), config.GetDataFlowDiagramFilenamePNG())
if _, err := os.Stat(dataFlowFile); errors.Is(err, os.ErrNotExist) {
progressReporter.Warn("Forcibly create the needed Data-Flow Diagram file to enable report generation.")
generateDataFlowDiagram = true
}
}
if !generateDataAssetsDiagram {
dataAssetFile := filepath.Join(config.OutputFolder, config.DataAssetDiagramFilenamePNG)
dataAssetFile := filepath.Join(config.GetOutputFolder(), config.GetDataAssetDiagramFilenamePNG())
if _, err := os.Stat(dataAssetFile); errors.Is(err, os.ErrNotExist) {
progressReporter.Warn("Forcibly create the needed Data-Asset Diagram file to enable report generation.")
generateDataAssetsDiagram = true
Expand Down

0 comments on commit 6568abb

Please sign in to comment.