fix: unhandled errors of unsafe calls in defer

This commit is contained in:
Julian Thome 2024-03-15 16:12:20 +01:00
parent fdb473d5ed
commit 873dc2207f
1 changed files with 1 additions and 1 deletions

View File

@ -81,7 +81,7 @@ func ListGitLabTemplates(tmplType string) ([]string, error) {
fileNames, err := f.Readdirnames(-1)
defer func() {
if err := f.Close(); err != nil {
log.Println(err)
log.Fatal(err)
}
}()