Close config file after decoding
ci/woodpecker/push/woodpecker Pipeline was successful Details

This commit is contained in:
Elara 2023-06-09 20:32:58 -07:00
parent 2a8cb0bb54
commit cf08c9e928
1 changed files with 4 additions and 0 deletions

View File

@ -91,6 +91,10 @@ func main() {
if err != nil {
log.Fatal("Error decoding config file").Err(err).Send()
}
err = fl.Close()
if err != nil {
log.Fatal("Error closing config file").Err(err).Send()
}
}
if _, err := os.Stat(cfg.Git.RepoDir); os.IsNotExist(err) {