fix bug with missing logs file

This commit is contained in:
aliamerj
2025-10-10 17:14:08 +03:00
parent 60c5782905
commit 7a95bf5652
6 changed files with 18 additions and 23 deletions

View File

@@ -259,11 +259,11 @@ func (g *BundleGenerator) Generate() (resp string, err error) {
err = fmt.Errorf("close zip file: %w", closeErr)
}
if err != nil {
if removeErr := os.Remove(bundlePath.Name()); removeErr != nil {
log.Errorf("Failed to remove zip file: %v", removeErr)
}
}
// if err != nil {
// if removeErr :=h.Name()); os.Remove(bundlePatremoveErr != nil {
// log.Errorf("Failed to remove zip file: %v", removeErr)
// }
// }
}()
g.archive = zip.NewWriter(bundlePath)