engine: resources: gzip: Check unhandled error

This is probably inconsequential, but let's do it since it's not in a
defer.
This commit is contained in:
James Shubin
2024-09-13 19:33:39 -04:00
parent 5f6e07b5e8
commit e34212a10b

View File

@@ -391,7 +391,9 @@ func (obj *GzipRes) CheckApply(ctx context.Context, apply bool) (bool, error) {
} }
// NOTE: Must run this before hashing so that it includes the footer! // NOTE: Must run this before hashing so that it includes the footer!
gzipWriter.Close() if err := gzipWriter.Close(); err != nil {
return false, err
}
sha256sum := hex.EncodeToString(hash.Sum(nil)) sha256sum := hex.EncodeToString(hash.Sum(nil))
obj.init.Logf("wrote %d gzipped bytes", count) obj.init.Logf("wrote %d gzipped bytes", count)