Skip to content

Commit

Permalink
fix: close file in the generateAtDir func
Browse files Browse the repository at this point in the history
  • Loading branch information
testwill committed May 9, 2024
1 parent 618fe53 commit 45229ce
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions pkg/cheatsheet/generate.go
Expand Up @@ -73,6 +73,10 @@ func generateAtDir(cheatsheetDir string) {
content = fmt.Sprintf("_This file is auto-generated. To update, make the changes in the "+
"pkg/i18n directory and then run `%s` from the project root._\n\n%s", CommandToRun(), content)
writeString(file, content)
err = file.Close()
if err != nil {
log.Fatal(err)
}
}
}

Expand Down

0 comments on commit 45229ce

Please sign in to comment.