Skip to content

Commit

Permalink
Fix for missing report templates
Browse files Browse the repository at this point in the history
  • Loading branch information
cmendible committed Nov 30, 2022
1 parent cd8ec95 commit 3ad2d51
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions cmd/azqr/report_templates/templates.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ package report_templates

import (
"embed"
"log"
)

//go:embed *.md
Expand All @@ -11,7 +10,7 @@ var embededFiles embed.FS
func GetTemplates(templateName string) string {
data, err := embededFiles.ReadFile(templateName)
if err != nil {
log.Fatal(err)
return ""
}
return string(data)
}

0 comments on commit 3ad2d51

Please sign in to comment.