mirror of https://gitlab.com/gitlab-org/cli.git
fix: unhandled errors of unsafe calls in defer
This commit is contained in:
parent
fdb473d5ed
commit
873dc2207f
|
@ -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)
|
||||
}
|
||||
}()
|
||||
|
||||
|
|
Loading…
Reference in New Issue